claabs / markov-discord

A Markov chain Discord chat bot. Generates unique messages by learning from past messages. Also occasionally attaches images to messages.
79 stars 20 forks source link

Feature request: delete bot message if it receives N reactions #40

Open holedaemon opened 2 years ago

holedaemon commented 2 years ago

Hey there, been using the bot since the beginning of the year and have to say it's been a pretty solid experience. Thanks for your work!

The server I'm running it for has a long history, and occasionally our bot will dig some undesirable things up (deadnames, exes' names, etc). We're all aware that this is just part of the nature of running something like this, but also agree it would be nice to have functionality allowing us to remove said messages without needing an admin around.

Essentially what I'm asking for is to have the bot listen to reactions and if one of its own messages gets a number of specific (possibly configurable) reactions or more (ideally configurable), it'll delete that message.

My TypeScript is pretty rusty, but if you're open to PRs, I'd be potentially willing to submit one for this. I'd appreciate your thoughts; thanks for your time!

claabs commented 2 years ago

Hey, great idea! This is a challenge I hadn't considered, and I think it's worth solving.

I also had some other plans to do with message reactions, and I think this can easily be bundled with them.