Skip to content

Commit

Permalink
fix: Modified the return message
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwor01 committed Dec 31, 2024
1 parent c11d0a6 commit 7877e55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions telegram_bot/karma/modify_karma.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 7877e55

Please sign in to comment.