ext-reactions-0.2.0
توضیحات
discord.py extension that adds reaction commands
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ext-reactions-0.2.0 |
| نام | ext-reactions |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | z03h |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/z03h/ReactionCommandBot |
| آدرس اینترنتی | https://pypi.org/project/ext-reactions/ |
| مجوز | MIT |
# Reaction Commands Extension
Extension to discord.py Bot that adds reaction based commands.
I'll finish this eventually and ~~document it somewhere maybe~~.
[](https://extreactions.readthedocs.io/en/latest/?badge=latest)
[Nice, docs are here](https://extreactions.readthedocs.io/en/latest/) 😄
[](https://pypi.org/project/ext-reactions/) 😄
[](https://github.com/z03h/ext-reactions) 😄
```python
# install with pip
python3 -m pip install ext-reactions
# or windows
py -3 -m pip install ext-reactions
# developement install
python3 -m pip install -U git+https://github.com/z03h/ext-reactions@master
# or windows
py -3 -m pip install -U git+https://github.com/z03h/ext-reactions@master
```
___
Example code
```python
import asyncio
import discord
from discord.ext import commands, reactioncommands
intents = discord.Intents.default()
intents.members = True
bot = reactioncommands.ReactionBot(command_prefix='!',
prefix_emoji='🤔',
listening_emoji='👀',
intents=intents)
@bot.reaction_command('🏓')
async def ping(ctx):
await ctx.send('Pong!')
with open('definitely-not-my-token', 'r') as f:
token = f.read()
bot.run(token)
```
___
Why would you use this?
You wouldn't, but you can use/subclass `ReactionBot` and it should behave
like a normal `ext.commands.Bot`.
~~You can make Bot commands without message intent, so it has that going for it~~
نیازمندی
| مقدار | نام |
|---|---|
| <1.7.0,>=1.6.0 | discord.py |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.4 | Python |
نحوه نصب
نصب پکیج whl ext-reactions-0.2.0:
pip install ext-reactions-0.2.0.whl
نصب پکیج tar.gz ext-reactions-0.2.0:
pip install ext-reactions-0.2.0.tar.gz