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 4702afe2a8 - Show all commits

View File

@ -104,8 +104,9 @@ 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':
if event['space'].get('slashCommand'): slash_command = event['message']['space'].get('slashCommand')
text = f"You used a slash command with ID {event['space']['slashCommand']['commandId']}" if slash_command:
text = f"You used a slash command with ID {slash_command['commandId']}"
else: else:
text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text']) text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text'])