This commit is contained in:
Benjamyn Love 2023-03-09 13:41:56 +11:00
parent 4702afe2a8
commit 63409e6725

View File

@ -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: