mirror of
https://github.com/kuhyx/signal-bot.git
synced 2026-07-04 11:43:03 +02:00
feat: sendding commands works for emoji messages
This commit is contained in:
parent
08099d7067
commit
55c4bf653a
9
main.py
9
main.py
@ -151,10 +151,11 @@ async def scheduled_task(queue):
|
||||
async def trigger_command(message_content, recipient):
|
||||
message_value = message_message(message_content)
|
||||
try:
|
||||
for command_triggers, command_function in command_map.items():
|
||||
if message_value in command_triggers:
|
||||
await command_function(recipient)
|
||||
break
|
||||
if message_value !== None:
|
||||
for command_triggers, command_function in command_map.items():
|
||||
if message_value in command_triggers:
|
||||
await command_function(recipient)
|
||||
break
|
||||
except TypeError:
|
||||
send_message(f"trigger_command, TypeError {message_content}", recipient)
|
||||
except:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user