Telegram-SpottedDMI-Bot
Telegram-SpottedDMI-Bot copied to clipboard
feat: warn/mute/unmute command
trafficstars
Prerequisites
- [x] I have read and understood the contributing guide.
- [x] The commit message follows the conventional commits guidelines.
- [x] Tested the changes locally with a real Telegram bot.
- [ ] Introduced tests for the changes have been added (for bug fixes / features).
- [x] Docs have been added/updated (for bug fixes / features).
- [x] I have updated the
CHANGELOG.rstfile with an overview of the changes made.
Description
This PR is a rework/continuation of the original #142
This PR has been co-authored by @alepiaz
This PR aims to add the following feature:
- /warn command: You can now warn users and trigger an autoban based on min warn settings. Moreover this feature uses lazy way to detect and delete expired eanrs.
- mute/unmute commands: You can now mute an user from interactions with the community group.
(If applicable) Issue closed by this PR
As the original PR:
- [closes #109]
- [closes #131 ]
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
Python version you are using
Python3.12
Other information
I need testers
- I don't like the current implementation of some checks, but for now the goal is to ship the feature
- I don't know how to fix the fail unit tests, no idea how they are structured