cordslash-0.1.3
توضیحات
A small slash commands wrapper for discord
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cordslash-0.1.3 |
| نام | cordslash |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | an-dyy |
| ایمیل نویسنده | yrisxl@gmail.com |
| آدرس صفحه اصلی | https://github.com/an-dyy/cordslash |
| آدرس اینترنتی | https://pypi.org/project/cordslash/ |
| مجوز | - |
# Cordslash
cordslash is a *WIP* discord slash commands wrapper, that is built on the [corded](https://github.com/vcokltfre/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
```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()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl cordslash-0.1.3:
pip install cordslash-0.1.3.whl
نصب پکیج tar.gz cordslash-0.1.3:
pip install cordslash-0.1.3.tar.gz