From 63409e672501d03e53871be659a726bb1d64ba3b Mon Sep 17 00:00:00 2001 From: Benjamyn Love Date: Thu, 9 Mar 2023 13:41:56 +1100 Subject: [PATCH] x --- priceybot2/chatbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priceybot2/chatbot.py b/priceybot2/chatbot.py index 4e59e5e..e2ca296 100644 --- a/priceybot2/chatbot.py +++ b/priceybot2/chatbot.py @@ -104,7 +104,7 @@ def format_response(event): text = 'Thanks for adding me to a DM, {}!'.format(sender_name) elif event_type == 'MESSAGE': - slash_command = event['message']['space'].get('slashCommand') + slash_command = event['messages']['space'].get('slashCommand') if slash_command: text = f"You used a slash command with ID {slash_command['commandId']}" else: