From 7128ad20ece2750c1193b4282eaccbae43f64cc3 Mon Sep 17 00:00:00 2001 From: Rykov7 Date: Sun, 5 Nov 2023 20:49:46 +0300 Subject: [PATCH] Update spam words. --- app/config.py | 2 +- app/report.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/config.py b/app/config.py index 6e923f1..da7375a 100644 --- a/app/config.py +++ b/app/config.py @@ -86,7 +86,7 @@ SPAM = {"me.sv/", "tg.sv/", "goo.by/", "go.sv/", "intim.video/", "uclck.ru/", ' 'в неделю выходит до', 'предложить заработок', 'голые фот', '🔞', 'интимные фот', '➡️', 'заработка в крипте', 'Веду набор', 'Идёт набор', 'мне в ЛС', 'Доход от', 'Trading', 'P2P', 'Идет набор', 'в лс', 'нaбop', 'комaндy', 'kpuпт', 'бupж', '💰', 'пишитe', - 'по трейдингу'} + 'по трейдингу', 'фальшивые рубли', } NON_GRATA = {"дудар", "хауди", "dudar"} BAN_WORDS = {"GREEN"} diff --git a/app/report.py b/app/report.py index f1e75b5..9953e10 100644 --- a/app/report.py +++ b/app/report.py @@ -1,4 +1,5 @@ import html +import random import shelve import os from .config import DATA, ROLLBACK @@ -8,6 +9,8 @@ def create_report_text(chat_id): report = "" top_users = "" flooders = [] + spammer_icons = ('🐷', '🐒', '🐔') + current_spammer_face = random.choice(spammer_icons) if os.path.exists(f"{DATA}{chat_id}.db"): with shelve.open(f"{DATA}{chat_id}", writeback=True) as s: for user_id in ROLLBACK: @@ -41,7 +44,7 @@ def create_report_text(chat_id): if s["Banned"]: report += f""" Криптоидов поймано: {s['Banned']} - └ [ {s['Banned']*'🐒'} ] + └ [ {s['Banned']*current_spammer_face} ] """ return report else: