diff --git a/priceybot2/chatbot.py b/priceybot2/chatbot.py index 4a115a1..b2a2fc7 100644 --- a/priceybot2/chatbot.py +++ b/priceybot2/chatbot.py @@ -104,7 +104,10 @@ def format_response(event): text = 'Thanks for adding me to a DM, {}!'.format(sender_name) elif event_type == 'MESSAGE': - text = 'Your message, {}: "{}"'.format(sender_name, event['message']['text']) + 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}