LDS-Gamers-Studios / icarus5

Custom bot for the LDS Gamers Community
MIT License
7 stars 5 forks source link

Need a way to clean up scamspam links #39

Open LaughLax opened 2 years ago

LaughLax commented 2 years ago

When a user's account is compromised (for example, by a bot that sends out a bunch of "Free Nitro!" links) and it sends a message in as many channels as it can, we need a way to clean that up.

That might look like: we tell the bot the contents of the message to clean up, and it checks each channel for a matching message. Or, we tell the bot a user account to clean up, it checks the user's recent history, and then deletes the most common message sent by the user.

These are just brainstorming ideas and not the only way to address the issue.

Maldor commented 2 years ago

Telling the bot the message seems like a good way, as does telling the bot whos message history needs to be cleaned up. I would opt to tell the bot who needs to be cleaned up by use of /mod scam User:USER#0000 Mute:True|False ...where the Mute parameter is optional and defaults to true. I'm hesitant to have the bot do it automatically per #133 as it might delete legitimate messages at the same time as the scam ones should the user be actively using in discord.

GuyInGrey commented 2 years ago

If it comes to someone mass-posting virus links (even if their account is compromised), I think the last thing to worry about is a couple legitimate messages. Far more important to clean things up before others fall prey to the same thing.