Recent

Author Topic: Bot moderator for large groups  (Read 436 times)

Renat.Su

  • Full Member
  • ***
  • Posts: 243
    • Renat.Su
Bot moderator for large groups
« on: October 08, 2024, 03:27:53 pm »
The bot helps quickly and silently ban spammers.

Group members notify administrators of spam messages themselves using the /spam command. The command should be sent in response to a spam message. All administrators receive a copy of the inspected message with the ability to check whether the member has correctly pointed to the spam message. If it is indeed a spam message, the member's rating is increased. At a certain number of points, spam messages are automatically deleted without the administrators' approval. If the inspected message is incorrectly identified as a spam, the member's rating is downgraded. In order for the bot to receive a list of administrators in a group or in case of deleting or adding a new one, it is necessary to send the /update command from any of the current administrators. Due to the fact that these commands are instantly deleted by the bot itself in the group, reports and updates occur unnoticed by users

#Architecture

The software implements the telegram bot as a web server in webhook mode

#Dependencies

    fp-telegram (Telegram bots API wrapper)
    brook-telegram (Plugin for BrookFoFreePascal)
    BrookForFreePascal & BrookFramework (HTTP server)
    dOPF (ORM)

Open source https://github.com/Al-Muhandis/AdminHelper

The bot runs on the Linux server as a web server daemon, but you can run your own instance
« Last Edit: October 08, 2024, 03:31:52 pm by Renat.Su »

Renat.Su

  • Full Member
  • ***
  • Posts: 243
    • Renat.Su
Re: Bot moderator for large groups
« Reply #1 on: December 12, 2024, 09:09:31 pm »
To the telegram bot (Username @Moderator_Helper_Robot) added Spam filter with Naive Bayes classifier and emoji counter:
The filter can be trained and used to automatically notify administrators (and in the case of high spam probability can be automatically to ban) about suspicious messages.
The bot based on this code shows itself to be excellent in filtering out spam in active telegram groups (@freepascal_en @Delphi_Lazarus)

 

TinyPortal © 2005-2018