- Боты для модерации чата в Телеграм
- @GBReborn_bot
- @AngryModerBot
- @daysandbox_bot
- Group Butler или с чего начать.
- Добавление бота.
- The Addition Of The Bot
- Что делать дальше?
- Russification of the bot
- Configuration of the bot
- Что еще?
- Rules and Welcome
- Group Butler
- Pro BotoStore.com
- Ⓜ️ MinecraftBot
- ChooChooBot
- Group butler как настроить
- About
Боты для модерации чата в Телеграм
Есть у меня несколько тематичных чатов в Телеграм (там где общаются, не путать с каналами). В самом крупном скоро 1000 участников будет. И вот это дело надо как-то контролировать.
Ниже несколько бесплатных ботов, которые справляются с модерацией и не дают чату превращаться в рассадник спама, продажи каких-то товаров и «срача».
Сейчас в каналах есть функционал комментирования. Основан он на подключении обычного чата. Так что перечисленные боты и в каналах пригодятся.
Безусловно, модератор человек нужен, т.к. к нему могут обращаться. Да и боты не распознают нарастающий конфликт. Но при автоматизации процесса нагрузка с вас снимается и с этими всеми чатами у меня справляется один человек.
@GBReborn_bot
Известный бот Group Butler, только это его новая версия [beta]. Все что удалось найти из отличий — это отсутствие кнопки / рядом с полем ввода текста. Как же она раздражала. Каждый наровил на нее нажать.
Для чего он мне: банит ботов, удаляет служебные сообщения, включает режим жалоб, выбираю какой тип контента/медиа разрешен в чате, запрет репостов с других каналов ТГ, система предупреждения и банов.
Систему «антифлуд» не использую. Нет необходимости.
Есть еще журнал событий (лог). По желанию.
Подключить бота легко: добавили админом в чат, отправили прямо в чате ему /config и он вам в личке откроет настройки как на скриншотах выше. Там же будет список доступных команд админам и обычным пользователям. Все на русском.
@AngryModerBot
Тоже бот-модератор, но мне от него нужна только фильтрация мата.
Его функционал частично пересекается с @GBReborn_bot, но скуднее. Поэтому отключаю все лишнее и оставляю только функционал антимата.
Тоже добавили его админом в чат и написали там же команду /setup , после чего он в личку пришлет настройки.
Минус: разработчики будут спамить вас рекламой в личке.
@daysandbox_bot
Наверное, самый известный, т.к. все натыкаются сразу на него при поиске ботов-модераторов.
Суть: в первые 24 часа после вступления человека в чат он не может отправлять фото и ссылки.
Это очень круто! Потому что «нехорошие» люди будут сразу распространять ссылки или фотки с призывами на других подписываться или продают что-нить. А тут им облом.
Бота просто добавили в админы. Он даст ссылку на инструкцию https://tgdev.io/bot/daysandbox_bot и здесь ничего сложного.
Там будет список команд, но сразу в чате пропишите /daysandbox set remove_media=yes
Остальное на ваше усмотрение.
Поделитесь своими наработками в области администрирования чатов в ТГ.
Источник
Group Butler или с чего начать.
Это краткий гайд по @GBReborn_bot сделанный специально для русскоязычных пользователей BUTLER’а и ему подобных ботов.
Добавление бота.
The Addition Of The Bot
У вас есть чат/группа и стоит начать с добавления бота в чат и сделать его админом.
Выбираете свою группу,а затем переходим в управление администраторами в своей группе.
Снизу кнопка Добавить Администратора и ищем @GroupButler_bot или @GBreborn_bot и выдаем максимальное кол-во прав. Последнее можете не выдавать если чего то боитесь,боту от этого хуже не будет.
Что делать дальше?
Russification of the bot
Мы добавили бота и даже сделали его админом,что же дальше?
Давайте теперь руссифицируем бота. Пишем в чат /lang после чего бот выдает клавиатуру с выбором языка.
А затем пишем /config тут же в чат и бот пришлет в личные сообщения клавиатуру настройки бота.
И коротенько по настройкам.
Configuration of the bot
1.Первый пункт к приветствию будет выдавать кнопку правил снизу.
2. Тихий режим.Если включено бот не будет отвечать на команды /config и подобные,а просто отвечать в лс.
3.Включить или выключить приветственное сообщение.
4.Если включено пользователи смогут жаловаться.Ответить на сообщение командой /report или @admin и администратор получит уведомление от бота.
5.Приветственное сообщение будет удаляться через некоторое время.
6.Все боты добавленные не админами будут забанены сразу.
7-8.Правила и дополнительные сообщение по командам будут отправляться в группу или личные сообщения.
9.Что будет делать бот при отправлении в чат сообщения на арабском (бан/кик/мут/ничего)
10.Что будет делать бот при отправлении в чат сообщения с RTL символом (бан/кик/мут/ничего)
11.Сколько предупреждений должен получить пользователь прежде чем его замутит/забанит/кикнет
12.Что сделает бот по достижению максимального количества впредупреждений
Антифлуд 2 пункт.
Запретить/ограничить определенные медиа в чате и наказание за них.
Бан за определенные медиа,за каждые из которых бот будет выдавать /warnmedia ,настройка количества варнов и наказание.
Антиспам 4 пункт.
Настройка наказания за
1.Сообщение с телеграм ссылкой
2.Пересылку сообщения из другого канала/группы.
Можно настроить бан/кик/мут/просто удаление сообщения
И варн по достижения максимального количества который бот забанит/замутит/кикнет
Настройка для отдельной группы/канала в который бот будет присылать все действия бота которые можно тут же выбрать (Лог-канал)
Ограничения 6 пункт.
Можно ограничить пользователя по определенным действиям сразу,когда он только вошел в чат.
Что еще?
Rules and Welcome
Сделаем правила и приветственное сообщение.
Пишем /welcome и сообщение и при входе нового пользователя в чат он получит это сообщение /goodbye работает так же только на выход юзера (/goodbye не работает в больших группах)
Можно использовать подстановки для имени / логина / ID новичка в группе
<<название><ссылка>> Пишется в конце поста и бот добавляет кнопку с любой ссылкой.
[название](ссылка) это позволяет сделать текст с ссылкой.
$username: будет заменена на логин
$name: будет заменена на имя
$id: будет заменена на ID
$title: будет заменена на название группы
$surname: будет заменена на фамилию
$rules: будет заменена на ссылку на правила группы.
GIF / стикер в качестве приветствия
Можно использовать определённый стикер или GIF как приветствие. Чтобы установить, ответь на желаемый GIF / стикер командой /welcome. То же самое работает и с /goodbye
/setrules [правила группы]: установить новые правила в группе (старые будут перезаписаны)
Вроде и все.Постепенно будем дополнять и редактировать текст.
Гайд by TopAdinPaladin специально для | РУССКИЙ BUTLER |.
Источник
Group Butler
This bot can help you in managing your group with rules, anti-flood, description, custom triggers, and much more!
What can do this bot?This bot can help you in the administration of a group.
You can kick, ban, set your rules/descrition, and many other stuffs, as the anti-flood and the custom triggers.
Add the bot to a group to get all the commands!
Hello Bot Info Bot 👋🏼, nice to meet you!
I’m Group Butler, the first administration bot using the official Bot API.
I can do a lot of cool stuffs, here’s a short list:
• I can kick or ban users
• You can use me to set the group rules
• I have a flexible anti-flood system
• I can welcome new users with a customizable message, or if you want with a gif or a sticker
• I can warn users, and ban them when they reach the maximum number of warnings
• I can also warn, kick or ban users when they post a specific media
…and more, below you can find the «all commands» button to get the whole list!
I work better if you add me to the group administrators (otherwise I won’t be able to kick or ban)!
📢 Bot channel 🌍 Select your language
📕 All the commands
Bot Commands
A command must always start with the ‘/’ symbol.
/help works only in private!
Share this bot
See also
Pro
BotoStore.com
Ⓜ️ MinecraftBot
ChooChooBot
Current schedule of planes, trains and buses all over the world.
Источник
Group butler как настроить
Group Butler helps people administrate their groups, and includes many other useful tools.
Group Butler was born as an otouto v3.1 ( @mokubot ), but it has since been turned into an administration bot.
Group Butler on Telegram:
First of all, take a look at your bot settings
- Make sure privacy is disabled (more info can be found by heading to the official Bots FAQ page). Send /setprivacy to @BotFather to check the current status of this setting.
Create a plain text file named .env with the following:
Set TG_TOKEN to the authentication token that you received from @BotFather .
Set SUPERADMINS as a JSON array containing your numerical Telegram ID. Other superadmins can be added too. It is important that you insert the numerical ID and NOT a string.
Set LOG_CHAT (the ID of the chat where the bot will send all the bad requests received from Telegram) and your LOG_ADMIN (the ID of the user that will receive execution errors).
Your .env file should now look somewhat like this:
Setup (using Docker)
- docker 18.02.0-ce
- docker-compose 1.21.0
- Optional: Docker Swarm cluster for deployment
Running (dev mode)
Run make dev_polling . Docker will pull and build the required images, so the first time you run this command should take a little while. After that, the bot should be up and running.
Code is mounted on the bot container, so you can make changes and restart the bot as you normally would.
Redis default port is mounted to host, just in case you want to debug something using tools available at the host.
The redis container is set to not persist data while in dev mode.
Running (production mode)
There’s a number of ways you can use docker for deploying into production.
Files named docker-compose.*.yml are gitignored, just in case you feel the need to override docker-compose.yml or write something else entirely.
The bot also supports reading Docker Secrets (may work with other vaults too). Check lua/config.lua to see which variables can be read from secrets.
You can deploy Group Butler by running:
Assuming you have deployed redis into, for instance staging ( docker stack deploy … or docker service create … ) and exported the required environment variables (like $TG_TOKEN …), you could deploy Group Butler by running:
docker stack deploy staging -c docker-compose.yml
Setup (without using Docker)
List of required packages:
- libreadline-dev
- redis-server
- lua5.1
- liblua5.1dev
- libssl-dev
- git
- make
- unzip
- curl
- libcurl4-gnutls-dev
You will need some other Lua modules too, which can be (and should be) installed through the Lua package manager LuaRocks.
Installation
You can easily install Group Butler by running the following commands:
Before you start the bot, you have to start the Redis process.
Starting the process
To start the bot, run ./launch.sh . To stop the bot, press Control CTRL + C twice.
You may also start the bot with ./polling.lua , however it will not restart automatically. You will also need to find another way to export the required environment variables.
Something that you should known before run the bot
- You can change some settings of the bot. All the settings are placed in config.lua , in the bot_settings table
- cache_time.adminlist : the permanence in seconds of the adminlist in the cache. The bot caches the adminlist to avoid to hit Telegram limits
- notify_bug : if true , the bot will send a message that notifies that a bug has occurred to the current user, when a plugin is executed and an error happens
- log_api_errors : if true , the bot will send in the LOG_CHAT all the relevant errors returned by an api request toward Telegram
- stream_commands : if true , when an update triggers a plugin, the match will be printed on the console
- There are some other useful fields that can be added to .env you can find in config.lua , for instance
- REDIS_DB : the selected Redis database (if you are running Redis with the default config, the available databases are 16). The database will be selected on each start/reload. Default: 0
- Other things that may be useful
- Administrators commands start for $ . They are not documented, look at the triggers of plugins/admin.lua plugin for the whole list
- If the main function of a plugin returns true , the bot will continue to try to match the message text with the missing triggers of the plugins table
- You can send yourself a backup of the zipped bot folder with the $backup command
- The Telegram Bot API has some undocumented «weird behaviours» that you may notice while using this bot
- In supergroups, the kickChatMember method returns always a positive response if the user_id has been part of the group at least once, it doesn’t matter if the user is not in the group when you use this method
- In supergroups, the unbanChatMember method returns always a positive response if the user_id has been part of the group at least once, it doesn’t matter if the user is not in the group or is not in the group blacklist
Some notes about the database
Everything is stored on Redis, and the fastest way to edit your database is via the Redis CLI.
You can find a backup of your Redis database in /etc/redis/dump.rdb . The name of this file and the frequency of saves are dependent on your redis configuration file.
If you want to help translate the bot, follow the instructions below. Parts of Group Butler use tools from gettext. However we don’t use binary format *.mo for the sake of simplicity. The bot parses the *.po files in the locales directory at runtime.
We recommend contributing translations to our Crowdin project.
Note for developers: update the POT file whenever you change a string, and don’t forget to use the i18n() function so it’s translatable. In order to update the POT file you will need to install gettext and then run:
Cosmonawt, for his Lua library for the Bot API
The Werewolf guys, for aiding the spread of the bot
Lucas Montuano, for helping me a lot in the debugging of the bot
All the Admins of our discussion groups about Group Butler
All the people who reported bugs and suggested new stuff
About
This bot can help you in managing your group with rules, anti-flood, description, custom triggers, and much more!
Источник