Skip to content

Commit

Permalink
fix(spam-prediction): adjust spam probability threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMissx committed Jul 16, 2024
1 parent 724ce39 commit c938790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anjani/internal_plugins/spam_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ async def spam_check(self, message: Message, text: str) -> None:
},
)

if probability >= 0.8:
if probability >= 78:
chat = message.chat
if not user and message.sender_chat:
if message.sender_chat.id == chat.id: # anon admin
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "anjani"
version = "2.14.12"
version = "2.14.13"
description = "Telegram group management bot"
license = "GPL-3.0-or-later"
authors = [
Expand Down

0 comments on commit c938790

Please sign in to comment.