Skip to content
PetyXbron edited this page Oct 7, 2024 · 6 revisions

Welcome to the LEA-bot wiki!


Here you can find an explanation and description of some of the AdvancedReactions bot features.

AdvancedReactions was created by @ArimDev in October 2024 with @PetyXbron in lead.

The bot is made for Discord's so-called "reaction roles" system. It's a Discord non-vanilla solution for getting roles from reactions to messages. AdvancedReactions stands out with its advanced parameters, limits, custom emojis, and more!

Bot commands

  • /ar
    • /ar setup - create a new setup
    • /ar remove - remove a setup
  • /purge - bulk deletes up to 100 messages in a channel
  • /info - clear info menu about the bot
  • /role
    • /role give - gives a role to a member with setups support
    • /role remove - removes a role from a member with setups support

How to use AdvancedReactions?

AdvancedReactions is a free bot that anyone can use just by adding it to its own Discord server. Adding a Discord bot to your Discord server is done by using an invite URL link.

As already told, AdvancedReactions is based on 'reaction roles'. The bot works like this:

How does the code work?

The created setup by the server administrator works like this:

  1. Use the /ar setup command
    1. Choose the already sent message
    2. Choose your desired emoji of a reaction
    3. Choose the role
    4. Select optional options:
      1. Welcome message and welcome channel
      2. Goodbye message and goodbye channel
      3. Max members that can claim this role
      4. Max of roles one member can get from this message
  2. After the bot receives the messageReactionAdd event:
    1. Database checks
    2. Loops through every setup with the same reaction emoji and message
      1. Check if the limit of users has been reached
      2. Check if the maxClaims limit has been reached
      3. Check if the role from setup exists and if the bot can give it
      4. Gives the role and saves the user's ID to the database
      5. Sends a welcome message to the welcome channel, if set
Clone this wiki locally