SquidDev-CC / FAQBot-CC

A Discord bot for answering frequently asked questions regarding CC.
MIT License
7 stars 11 forks source link

Make bot react with :wastebasket: on eval messages. #36

Closed SkyTheCodeMaster closed 3 years ago

SkyTheCodeMaster commented 3 years ago

People on MCCM have requested that the bot react with :wastebasket: on the eval messages, for "easy deletion of the messages". This is a simple change, only requiring to catch the output of ctx.send (Which returns a message object) and call message.add_reaction on it, adding the reaction. This should not trigger the deletion, as the user of the on_reaction_add will be the bot, instead of the reference author.