x
This commit is contained in:
parent
4702afe2a8
commit
63409e6725
@ -104,7 +104,7 @@ def format_response(event):
|
|||||||
text = 'Thanks for adding me to a DM, {}!'.format(sender_name)
|
text = 'Thanks for adding me to a DM, {}!'.format(sender_name)
|
||||||
|
|
||||||
elif event_type == 'MESSAGE':
|
elif event_type == 'MESSAGE':
|
||||||
slash_command = event['message']['space'].get('slashCommand')
|
slash_command = event['messages']['space'].get('slashCommand')
|
||||||
if slash_command:
|
if slash_command:
|
||||||
text = f"You used a slash command with ID {slash_command['commandId']}"
|
text = f"You used a slash command with ID {slash_command['commandId']}"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user