feat/9-login-system #15

Merged
benjamyn merged 7 commits from feat/9-login-system into main 2023-03-09 01:52:01 -05:00
Showing only changes of commit 310c9ed759 - Show all commits

View File

@ -104,8 +104,8 @@ def format_response(event):
text = 'Thanks for adding me to a DM, {}!'.format(sender_name)
elif event_type == 'MESSAGE':
if event['slashCommand']:
text = f"You used a slash command with ID {event['slashCommand']['commandId']}"
if event['space'].get('slashCommand'):
text = f"You used a slash command with ID {event['space']['slashCommand']['commandId']}"
else:
text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text'])