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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cordslash-0.1.3.tar.gz.
File metadata
- Download URL: cordslash-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
973a2c6e2d794d0ad8d11abfc38a47d9fe01a789bc4f34bdcc4974f34839608f
|
|
| MD5 |
dbcd04e2576a3584c7d89291237b7450
|
|
| BLAKE2b-256 |
11c6ed7dd7b59710905a2f8e7911afb30de6fefea6490df44b63d24886d21aa6
|
File details
Details for the file cordslash-0.1.3-py3-none-any.whl.
File metadata
- Download URL: cordslash-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d607e4e809650420a3cb54fe42bb94ff062878ba63eb64b924b8542e162e305
|
|
| MD5 |
f7204431f666899142e6ce39bd394560
|
|
| BLAKE2b-256 |
ad6f0bfcab4bf4e777955de8d1229b5c405a8245226f4e3d4d99868839daf2bd
|