katlyn / foxbox

3 stars 0 forks source link

Allow for persistent reaction roles in addition to flippant gang reaction roles #9

Closed Camology closed 3 years ago

Camology commented 3 years ago

For example in the Gamer Night server I would like to leave up two messages, one inviting people to react with whatever to gain our Movie Night alert role. As well as a second message below it for people to react with whatever to gain our Anime Night role.

Currently the hoardbot is designed to just handle the latest message, so if you do this it junks up the current gang reaction message (allowing no more gang enlistment), it will not process the Movie Night alert role, but will process the second persistent role.

katlyn commented 3 years ago

This has been implemented in a1175970d7cdd68f9f2f5959106e9eb114d9226e. Currently the documentation for this feature isn't the best, but here's a quick rundown of how to use the command.

  1. Run the %reaction-role command in any channel the bot can see.
  2. React to the message that would like the reaction role to be on with the emoji you would like users to react with.
  3. At this point, if permissions are configured correctly and the bot was able to see the reaction, the bot should have sent a followup message prompting you to respond with the role that this emoji should assign. Respond with the role mention or role ID of the role you would like to use.

At this point, the reaction role will be fully set up, and the bot will respond with a confirmation message. You can add additional reaction roles to the message following this same format. If you would like to remove the reaction roles for a message, you are able to use the following command: reaction-role remove <message id>.

As a last note, the following aliases exist for this command: reaction-roles, rr

Camology commented 3 years ago

Works great, only two suggestions.

  1. Have the bot react to itself after I make the react, because I can't actually react to get the role unless someone else also reacts.
  2. Have it cleanup the messages or condense them into one message somehow because it is a bit to cleanup after a successful setup.

Nothing major since to use this bot I have to be an admin and deleting a few messages isn't a big deal just if you're bored some low hanging fruit