Simple, yet effective moderator bot for telegram. With reports, logs, profanity filter and more :3

Overview

👹 Samurai Telegram Bot

Simple, yet effective moderator bot for telegram. With reports, logs, profanity filter and more :3

Description

Personal bot, made for easy chat auto-moderation.
Adds reporting functionality, profanity filtering (both english & russian languages are supported), logging system via private channel and much more!
More of that, the bot code & functions can be easily extended and/or limited as you prefer.

The code has NOT been polished and is provided "as is". There are a lot of code that are redundant and there are tons of improvements that can be made.

ToDo

https://trello.com/b/MbwAxjd1/xobot-official

Credits

https://github.com/masteroncluster/py-censure - Profanity filter we used as a base
https://github.com/MasterGroosha/telegram-report-bot - Reports system we used as a base

Author

(C) 2021 Abraham Tugalov. http://howdyho.net

Comments
  • Add mastergroosha/telegram-report-bot to Credits section

    Add mastergroosha/telegram-report-bot to Credits section

    Hello!

    Since your bot uses some code written by me (compare your utils.py with mine and many other parts of code) it would be very kind of you to add https://github.com/MasterGroosha/telegram-report-bot to Credits section in Readme.

    ~~Just a reminder: the MIT License requires to keep copyright notice if you copy the original product~~ (this is irrelevant, sorry)

    Have a nice day!

    opened by MasterGroosha 3
  • Added .gitignore

    Added .gitignore

    You should always use .gitignore file to prevent unnecessary files from tracking.

    Consider also adding config.ini to .gitignore and tracking config.example.ini instead. But it's up to you :)

    opened by MasterGroosha 1
  • Добавил функции ban и unban для ЛС

    Добавил функции ban и unban для ЛС

    Привет Абрахам, я Илья(illyaMoss) из ХО-чата.

    Надеюсь ты примешь мой pull request:)

    Я реализовал функции бана и разбана в ЛС бота. Но получить id пользователя по username невозможно, поэтому нужно присылать user_id, но это можно решить если подключить базу данных. База данных и так нужна для некоторых фич. Но я пока не представляю, как нам запихнуть всех юзеров в db?

    Думаю нужно заменить муторный парсер файла config.ini на config.py тем самым сделать код проще и возможно избавится от easydict. Дописал немного readme.md файл и config.ini, потому, что столкнулся с небольшими проблемами при старте бота на своем ПК. Еще я бы использовал pipenv, он создает отдельное окружение для проекта.

    А так мне очень понравилось делать свой вклад в развитие этого проекта=) Спасибо!

    opened by qXytreXp 0
  • Added new filter & from now pseudo-admins can't ban members

    Added new filter & from now pseudo-admins can't ban members

    Hello Abraham!

    I create filter for checking restriction ability. Because in your chat I have only prefix, but I can restrict chatmembers. I fix it.

    Here is code of new filter.

    image

    By WinDuz

    opened by ilyas-kalandar 0
  • IsAdminFilter is incorrect

    IsAdminFilter is incorrect

    Hi there. There is an issue with your IsAdminFilter

    A filter is considered passed if its check() function returns True. Let's take a look at your current implementation:

    async def check(self, message: types.Message):
        member = await message.bot.get_chat_member(message.chat.id, message.from_user.id)
        return member.is_chat_admin()
    

    See the issue? Your filter will return True if a member is admin, regardless of what you passed to it is_admin=True or is_admin=False or even is_admin=123123123. It doesn't matter since your code doesn't compare that value at all.

    The fix is simple: compare is_chat_admin() result with what you passed as is_admin filter argument

    opened by MasterGroosha 0
  • Добавление бд и много чего другого

    Добавление бд и много чего другого

    Реформатировал весь код, обновил версию python в Procfile Мой код только добавляет юзеров в базу данных, но не стоить забывать, что нужно в heroku добавить локальнкую переменную среды DATABASE_URL из url бд. Ну и в хероку создать саму базу данных @zathir22 из хо-чата

    opened by zaphir-code 0
Owner
Abraham Tugalov
ISTp
Abraham Tugalov
Bot-moderator for Telegram group chats

Project title A little info about your project and/ or overview that explains what the project is about. ?? Hello everyone! This is the repository of

Maxim Zavalniuk 6 Nov 1, 2022
An Simple Advance Auto Filter Bot Complete Rewritten Version Of Adv-Filter-Bot

Adv Auto Filter Bot V2 This Is Just An Simple Advance Auto Filter Bot Complete Rewritten Version Of Adv-Filter-Bot.. Just Sent Any Text As Query It Wi

null 0 Dec 18, 2021
A Simple Advance Auto Filter Bot Complete Rewritten Version Of Adv-Filter-Bot

Adv Auto Filter Bot This Is Just An Simple Advance Auto Filter Bot Complete Rewritten Version Of Adv-Filter-Bot.. Just Sent Any Text As Query It Will

TeamShadow 4 Dec 10, 2021
KalmanFilterExercise - A Kalman Filter is a algorithmic filter that is used to estimate the state of an unknown variable

Kalman Filter Exercise What are Kalman Filters? A Kalman Filter is a algorithmic

null 4 Feb 26, 2022
Telegram bot/scraper to get the latest NUS vacancy reports.

Telegram bot/scraper to get the latest NUS vacancy reports. Stay ahead of the curve and don't get modrekt.

Chee Hong 1 Jan 8, 2022
Transcript-Extractor-Bot - Yet another Telegram Voice Recognition bot but using vosk and supports 20+ languages

transcript extractor Yet another Telegram Voice Recognition bot but using vosk a

null 6 Oct 21, 2022
Telegram Bot to Filter posts in Bot Inline search

Inline-Filter-Bot A Telegram Bot for filter in Inline Features Unlimited Filters Supports all type of filters Supports Alert Button Using Common Marku

Code X Botz 67 Dec 26, 2022
Cleiton Leonel 4 Apr 22, 2022
A Telegram Bot with(Forwarder Bot + User Bot + More Features )

A Telegram Bot with(Forwarder Bot + User Bot + More Features )

Kaif 3 Feb 16, 2022
null 1 Feb 18, 2022
Simple Discord bot which logs several events in your server

logging-bot Simple Discord bot which logs several events in your server, including: Message Edits Message Deletes Role Adds Role Removes Member joins

null 1 Feb 14, 2022
Telegram Auto Filter Bot

Pro Auto Filter Bot V2.o Hey Mo Tech, I'm an Autofilter bot v2.O and you can not Add Me to your Group. I was made for this one group. So don't waste y

null 14 Oct 20, 2021
Unlimited Filter Telegram Bot 2

Mother NAther Bot Features Auto Filter Manuel Filter IMDB Admin Commands Broadcast Index IMDB search Inline Search Random pics ids and User info Stats

LɪᴏɴKᴇᴛᴛʏUᴅ 1 Oct 30, 2021
Automate TikTok follower bot, like bot, share bot, view bot and more using selenium

Zefoy TikTok Automator Automate TikTok follower bot, like bot, share bot, view bot and more using selenium. Click here to report bugs. Usage Download

null 555 Dec 30, 2022
Tglogging - A python package to send your app logs to a telegram chat in realtime

Telegram Logger A simple python package to send your app logs to a telegram chat

SUBIN 60 Dec 27, 2022
Discord Bot for server hosts, devs, and admins. Analyzes timings reports & uploads text files to hastebin. Developed by https://birdflop.com.

"Botflop" Click here to invite Botflop to your server. Current abilities Analyze timings reports Paste a timings report to review an in-depth descript

Purpur 76 Dec 31, 2022
Simple bot to receive feedback,same as livegram bot but with more features & full control over bot

Kontak Simple bot to receive feedback,same as livegram bot but with more features & full control over bot Deploy to VPS

Mahin Ahmed 2 Dec 16, 2021
A simple telegram voting bot based on the python-telegram-bot api.

A simple telegram voting bot based on the python-telegram-bot api. *To make it more easy to use, I might make a C++ code in the future so you don't ha

null 3 Sep 13, 2021
A simple Telegram bot that analyses a given word, built with python-telegram-bot

Telegram Word Bot A simple Telegram bot that analyses a given word, built with python-telegram-bot. The bot is fairly useless - unless you often need

Chris N 2 Jul 14, 2022