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: