discord.py extension that adds reaction commands
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Reaction Commands Extension
Extension to discord.py Bot that adds reaction based commands.
I'll finish this eventually and document it somewhere maybe.
# 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
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 ext_reactions-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ext_reactions-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1600e183396d7fd5e31780bb62f462f938a0fcbf9f8a7bb81adcd36d29aba41
|
|
| MD5 |
c1603dc84ae0d60d220f781bad7a1c97
|
|
| BLAKE2b-256 |
ea8b7662c226e0c2a1f5cf1d5b188fa4d849ad21ac87ed9708649d1b6a147055
|