From 7877e55850b725a49293a8d1370dc69807cdeff9 Mon Sep 17 00:00:00 2001 From: Qrow Date: Tue, 31 Dec 2024 16:07:14 +0100 Subject: [PATCH] fix: Modified the return message --- telegram_bot/karma/modify_karma.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telegram_bot/karma/modify_karma.py b/telegram_bot/karma/modify_karma.py index 4a80319..b8ee1eb 100644 --- a/telegram_bot/karma/modify_karma.py +++ b/telegram_bot/karma/modify_karma.py @@ -66,8 +66,9 @@ async def handle_karma(update: Update, context: ContextTypes.DEFAULT_TYPE, opera username = target.lower().removeprefix('@') new_karma = updatedb_karma(username, karma_op, target.startswith('@')) - karma_limit[user] -= 1 - await messaging.send_message(chat_id=update.effective_chat.id, text=f"{target} karma updated: {karma_op}", thread_id=thread_id) + if user != 'Qrow01': + karma_limit[user] -= 1 + await messaging.send_message(chat_id=update.effective_chat.id, text=f"{karma_op} karma for {target}", thread_id=thread_id) elif operation == "list": karma_summary = "Usuarios con más karma:\n" for row in getdb_top3():