Added test slash command
This commit is contained in:
parent
308134fb7e
commit
04b4f0ec01
@ -104,6 +104,9 @@ 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']}"
|
||||
else:
|
||||
text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text'])
|
||||
|
||||
response = {'text': text}
|
||||
|
||||
Reference in New Issue
Block a user