https://github.com/iamnalinor/neiro2ban
Ban annoying "Нейросети для творчества и заработка" reaction spammers
https://github.com/iamnalinor/neiro2ban
Last synced: about 1 month ago
JSON representation
Ban annoying "Нейросети для творчества и заработка" reaction spammers
- Host: GitHub
- URL: https://github.com/iamnalinor/neiro2ban
- Owner: iamnalinor
- License: gpl-3.0
- Created: 2024-06-04T08:26:15.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T11:37:48.000Z (12 months ago)
- Last Synced: 2024-06-05T09:47:34.047Z (12 months ago)
- Language: Python
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# neiro2ban
Ban annoying "Нейросети для творчества и заработка" reaction spammersBot bans users meeting **all of this criterias**:
1. The user added a reaction on behalf of his profile
2. This is the first and only reaction from this user on this message
3. The reaction should be added no later than 10 seconds from the time the message was sent
4. The user must have `@creaitors_bot` keyword in bio## Setup
1. Create your bot in @BotFather, add it to target group and give admin rights with "Ban users" privilege
2. `pip install -r requirements.txt`
3. Either create file `.env` and fill it with your token (i.e. `BOT_TOKEN=123456:abcdef`) or pass BOT_TOKEN as environment variable
4. Run main.py