Karma logging fix

This commit is contained in:
2026-05-09 20:37:05 -05:00
parent b722a78d21
commit c04e06e556
+5 -2
View File
@@ -473,10 +473,13 @@ async def handle_command(room, message, bot, prefix, config):
# Debug logging
message_body = message.body if hasattr(message, 'body') else str(message)
logging.info(f"Karma plugin received message: '{message_body}' from {message.sender}")
logging.debug(f"Karma plugin received message: '{message_body}' from {message.sender}")
# Get the full command (including what might be karma++ etc.)
full_cmd = match.command() if hasattr(match, 'command') else ''
try:
full_cmd = match.command()
except IndexError:
full_cmd = ''
logging.debug(f"Full command: '{full_cmd}'")