diff options
| author | huker667 <huker@tuta.io> | 2026-05-24 22:43:22 +0300 |
|---|---|---|
| committer | huker667 <huker@tuta.io> | 2026-05-24 22:43:22 +0300 |
| commit | 5baf31d5f43a0b1aa73ac3a8a0667446e76bc294 (patch) | |
| tree | 5dfb348470ccece67b12199912a8d8611c7f2499 | |
| parent | e0a29460aad1824b2582450462063054a0f37ece (diff) | |
| download | uzbekgpt-5baf31d5f43a0b1aa73ac3a8a0667446e76bc294.tar.gz uzbekgpt-5baf31d5f43a0b1aa73ac3a8a0667446e76bc294.tar.bz2 uzbekgpt-5baf31d5f43a0b1aa73ac3a8a0667446e76bc294.zip | |
extended ben and reporn pro plus
| -rw-r--r-- | commands.py | 35 | ||||
| -rw-r--r-- | config_def.py | 5 |
2 files changed, 31 insertions, 9 deletions
diff --git a/commands.py b/commands.py index 27d2dca..7838a6d 100644 --- a/commands.py +++ b/commands.py @@ -103,10 +103,20 @@ async def broadcast_handler(message: Message): @router.message(Command("ben")) async def start_handler(message: Message): if message.chat.type in [ChatType.GROUP, ChatType.SUPERGROUP]: - await message.reply( - "вы забанены за Botting, spamming, and coordinated inauthentic behavior.😡✅" - ) - add_one_to("stats/ben") + if message.chat.id in BEN_IDS: + replied = message.reply_to_message or None + if replied: + name = replied.from_user.first_name + ben_id = replied.from_user.id + else: + name = message.from_user.first_name + ben_id = message.from_user.id + + await message.reply( + f"{name} ({ben_id}) заbenен за Botting, spamming, and coordinated inauthentic behavior.😡✅\n" + f"админ: Ben (958011829)✅" + ) + add_one_to("stats/ben") return @@ -115,10 +125,19 @@ async def start_handler(message: Message): async def start_handler(message: Message): user_name = message.from_user.first_name or message.sender_chat.title or "вы" if message.chat.type in [ChatType.GROUP, ChatType.SUPERGROUP]: - await message.reply( - f"отправлен репорт на {user_name}!" - ) - add_one_to("stats/reporn") + if message.chat.id in REPORN_IDS: + replied = message.reply_to_message or None + if replied: + name = replied.from_user.first_name + ben_id = replied.from_user.id + else: + name = message.from_user.first_name + ben_id = message.from_user.id + + await message.reply( + f"отправлен репорт на {name} ({ben_id})!📞" + ) + add_one_to("stats/reporn") return diff --git a/config_def.py b/config_def.py index 3b1a56d..8084fe9 100644 --- a/config_def.py +++ b/config_def.py @@ -35,8 +35,11 @@ MAX_CONTEXT = 7 MAX_PROMPT = 1500 MAX_TOKENS = 1500 +BEN_IDS = [2147940521, 1834656942, 3142512395] +REPORN_IDS = [2147940521, 2775610996, 1834656942, 3142512395] + BOT_USERNAME = "Uzbek_GPTrobot" -BOT_CALLS = ["узбек", "uzbek"] +BOT_CALLS = ["узбек", "uzbek", f"@{BOT_USERNAME}"] DEFAULT_MODEL = "ollama*gemma4:31b-cloud" IMAGE_MODEL = "ollama*gemma3:27b-cloud" |