discordrouter-0.0.5
توضیحات
Decorator for discord.py chat bots
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | discordrouter-0.0.5 |
| نام | discordrouter |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Max Harley |
| ایمیل نویسنده | maxh@maxh.io |
| آدرس صفحه اصلی | https://github.com/t94j0/discord-router |
| آدرس اینترنتی | https://pypi.org/project/discordrouter/ |
| مجوز | - |
# Discord Router
A simple router decorator for [discord.py](https://github.com/Rapptz/discord.py) chat bots.
## Installation
`pip3 install discordrouter`
## Usage
```py
from discordrouter import Router, message
class ChatBot(discord.Client):
router = Router('!test')
async def on_ready(self):
print(f'Logged in as {self.user.name}')
async on_message(self, message):
await self.router(message)
@message(router, "new <name>")
async _test1(self, items, message):
name = items['name']
await message.channel.send('{name}')
```
نحوه نصب
نصب پکیج whl discordrouter-0.0.5:
pip install discordrouter-0.0.5.whl
نصب پکیج tar.gz discordrouter-0.0.5:
pip install discordrouter-0.0.5.tar.gz