Tuesday, August 28, 2018

Using RainRatBot for Moderation - Bot defense - Usage

This is a continuation of the previous blog, which explains the background of the problem.

From what we've seen, these Rogue bots enter our Telegram groups, say nothing, and if they're left in the group, they add a Telegram-recognized bot that posts a stream of spam. I added a defense against these Rogue bots to RainRatBot:


  1. Watch for new users joining the group
  2. Look at the profile of the new user to see if it looks like a bot
  3. If it doesn't look like a bot, nothing else happens, otherwise RainRatBot will send a message to the group asking them to introduce themselves.
  4. Then it sends a message to the group admins that a suspected bot joined.
  5. Then it starts a 5 minute timer and watches the group for new messages during that 5 minutes.
  6. If the suspected bot sends a message to the group during the 5 minutes, RainRatBot will assume they are real, cancels the timer, and does nothing else.
  7. If it is still silent after 5 minutes, RainRatBot will:
  8. Ban the rogue bot.
  9. Send a message to the group telling them that the Rogue bot was removed.
  10. Send a message to the group admins telling them that the Rogue bot was removed.
This is how it looks in the group:



I do like my movie references; if you don't like the Robocop theme, the messages can be customized on a per-group basis.

All the moderation functions are locked to groups where the group owner requested them. If you just add RainRatBot to your group, it will only do the Fursuit Identification described in the rest of this blog. I made a form to make it easier to request the moderation functionality.

No comments: