Skip to main content

discord.py extension that adds reaction commands

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.

Documentation Status Nice, docs are here 😄

PYPI 😄

Github 😄

# 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ext_reactions-0.2.0-py3-none-any.whl (19.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page