The discordpy-reactions extension is a popular addition to the Discord.py library, designed to enhance the interaction and engagement within Discord servers.

Features

  • Custom Reactions: Allow users to add custom reactions to messages.
  • Reaction Roles: Assign roles to users based on their reactions.
  • Reaction Counters: Keep track of the number of reactions on a message.
  • Moderation Tools: Manage and moderate reactions within your server.

Usage

To use the discordpy-reactions extension, first, you need to install it via pip:

pip install discordpy-reactions

Then, you can import and use it in your bot:

from discord.ext import commands
from discordpy_reactions import Reactions

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
    print(f'Logged in as {bot.user}')

@bot.event
async def on_message(message):
    if message.author == bot.user:
        return

    reactions = Reactions()
    await reactions.add_reaction(message, "👍")

    await bot.process_commands(message)

bot.run('your_token_here')

Screenshots

Here's a screenshot of the extension in action:

Custom Reactions

Learn More

For more information and examples, check out the official documentation: /en/extensions/discordpy-reactions/documentation