Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bomzheg/KarmaBot
Telegram bot for change karma and simple moderation with history of actions
https://github.com/bomzheg/KarmaBot
aiogram aiogram3 bot telegram-bot tortoise-orm
Last synced: about 2 months ago
JSON representation
Telegram bot for change karma and simple moderation with history of actions
- Host: GitHub
- URL: https://github.com/bomzheg/KarmaBot
- Owner: bomzheg
- License: other
- Created: 2020-02-18T21:13:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T07:31:22.000Z (4 months ago)
- Last Synced: 2024-08-15T09:00:47.554Z (4 months ago)
- Topics: aiogram, aiogram3, bot, telegram-bot, tortoise-orm
- Language: Python
- Homepage: https://t.me/pythonscriptsbot
- Size: 653 KB
- Stars: 116
- Watchers: 6
- Forks: 22
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.adoc
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.adoc
Awesome Lists containing this project
README
# KarmaBot
![Лого проекта](./docs/pictures/gitgub_titlepic.png)
This telegram bot is designed to track karma in chats.
Just add him to the chat and thank each other for helpful answers.[![wakatime](https://wakatime.com/badge/github/bomzheg/KarmaBot.svg)](https://wakatime.com/badge/github/bomzheg/KarmaBot)
[![license](https://img.shields.io/badge/💬-Telegram-blue)](https://t.me/KarmaBotDev)- [Deployment](./docs/deploy_manual.md)
- [Development](./docs/development.md)Most bot commands use throttle mechanism, it means the bot wouldn't answer if you send many identical requests in a row.
Commands list:
* /start, !start - simple bot information
* !help - information about karma triggers
* !about - information about the bot author and link to the source code
* !top - show top users by karma level for this chat (only works for group and supergroups)
* !me - show your karma for this chat (in group or supergroup) or show your karma for all yours chats (in private)
* !report, /report, !admin, /admin, @admin - report spam, insult or another inappropriate content
to the group administrators
* !settings - show chat settings and commands to change themModerator commands list:
* !ro !mute [DURATION] [@mention] - restrict replied or mentioned user for DURATION.
* !ban [DURATION] [@mention] - kick replied user for DURATION
* DURATION in format [AAAy][BBBw][CCCd][DDDh][EEEm][FFFs] where:
* AAA - count of years (more than one year is permanent)
* BBB - count of weeks
* CCC - count of days
* DDD - count of hours
* EEE - count of minutes
* FFF - count of seconds (less than 30 seconds will be mean 30 seconds)
* you have to specify one or more duration part without spaces
* !warn, !w [@mention] - official warn user from moderator
* !info [@mention] - information about user (karma changes, restrictions, warns)
* !karma_import [{"id": %id%, "karma": 42}] - import karma from JSON.
%id% - is telegram user id, 42 is user karma. ONLY FOR CHAT OWNER.
You can add more than one object in array.Chat settings commands list:
* !enable_karma - enable karma in chat
* !disable_karma - disable karma in chat
* !enable_karmic_ro - enable restrictions on low karma reason
(need to have right for ban users for bot and user asked for that command)
* !disable_karmic_ro - disable restrictions on low karma reason
(need to have right for ban users for bot and user asked for that command)
* !set_report_reward [REWARD] - set reward for reportHelper commands list:
* !idchat - get id of chat, your id, and id of replayed user (if you reply to someone)
* !go - search in Google
* !paste - services for paste code
* !nm - information about meta-questions
* !xy - information about XY problemSuperuser commands list:
* /dump - The bot sends a dump of the sqlite database to the chat DUMP_CHAT_ID
* /get_out - Leave chat
* /exception - Throw RuntimeError exception
* /entities - Show entities from reply message