Skip to content

z03h/ext-reactions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 PYPI GitHub last commit

😄😄😄😄

# 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

You can make Bot commands without message intent, so it has that going for it