feat: show error tpye when trigger command fails

This commit is contained in:
Krzysztof Rudnicki 2024-06-24 19:34:53 +02:00
parent 0f74208e4b
commit 08099d7067

View File

@ -155,8 +155,10 @@ async def trigger_command(message_content, recipient):
if message_value in command_triggers: if message_value in command_triggers:
await command_function(recipient) await command_function(recipient)
break break
except TypeError:
send_message(f"trigger_command, TypeError {message_content}", recipient)
except: except:
send_message("Rudnik coś popsuł", recipient) send_message(f"trigger_command, unknown error {message_content}", recipient)
async def send_to_group(message_content): async def send_to_group(message_content):
if message_group_id(message_content) == GROUP_ID: if message_group_id(message_content) == GROUP_ID: