Skip to main content

A small slash commands wrapper for discord

Project description

Cordslash

cordslash is a WIP discord slash commands wrapper, that is built on the corded framework by vcokltfre. Expect more changes/features to be added in the future, currently undocumented but will be soon PR's are welcome

MAKE SURE TO INSTALL CORDED OTHERWISE USE THE POETRY ENV

example.py

import corded
import cordslash

intents = corded.Intents.default()
intents.guild_members = True

bot = cordClient(token="BOT_TOKEN", app_id=BOT_ID, intents=intents)

@bot.command(name="wave", guild_ids=[12345678910], description="Say hello to a user")
async def wave(ctx: cordslash.Context, user: cordslash.User) -> None:
    await ctx.send(f":wave: <@{user}>!")

bot.start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cordslash-0.1.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cordslash-0.1.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file cordslash-0.1.2.tar.gz.

File metadata

  • Download URL: cordslash-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.0

File hashes

Hashes for cordslash-0.1.2.tar.gz
Algorithm Hash digest
SHA256 893be56f53e5c9108b829728a88bc0d7220d0223ee5aaadd5efb90a78a883e25
MD5 eb412378c0fb23a0a0ab9d4bdbbe83d9
BLAKE2b-256 de1bdf265c3f49b1958c3fc7c3450a606e855f2d98642a10a12da4dafe0e9de6

See more details on using hashes here.

File details

Details for the file cordslash-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cordslash-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.0

File hashes

Hashes for cordslash-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae3abdf7ac764f461eb04cda2b681b39e6ef513e5676db7b17d94df3895f264
MD5 fc8e00ffc06f85373992192d5998c6c5
BLAKE2b-256 3e8030d5526e9d0abec27149fc59bfdc84c9258dcfa35c55969e091e9f1efa13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page