mik3sw / GoogleAssistantBot

Simple and Open source Telegram bot, for group managing (and fun)
https://t.me/pythonandroidbot
Apache License 2.0
8 stars 3 forks source link

Add commands /autoban and /autokick #19

Closed giaccone closed 2 years ago

giaccone commented 2 years ago

The commands are executed sendingin in the chat: /autokick reason /autoban reason

where 'reason' is a message to explain to the user the reason of the kick/ban.

The command must be used in reply to the user's message. The bot send a message in the chat to the user providing the 'reason'. After 60 seconds the user is kicked/banned.

Changes: modified: commands/admin/init.py new file: commands/admin/autoban.py new file: commands/admin/autokick.py modified: commands/index.py