Telegram-SpottedDMI-Bot icon indicating copy to clipboard operation
Telegram-SpottedDMI-Bot copied to clipboard

feat: warn/mute/unmute command

Open LightDestory opened this issue 1 year ago • 2 comments
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.rst file 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

LightDestory avatar Dec 21 '23 01:12 LightDestory

  1. I don't like the current implementation of some checks, but for now the goal is to ship the feature
  2. I don't know how to fix the fail unit tests, no idea how they are structured

LightDestory avatar Dec 21 '23 01:12 LightDestory