Skip to content

Instantly share code, notes, and snippets.

@wray
Created October 30, 2016 23:58
Show Gist options
  • Save wray/51989f04744147f4e7c94cebb0d038a4 to your computer and use it in GitHub Desktop.
Save wray/51989f04744147f4e7c94cebb0d038a4 to your computer and use it in GitHub Desktop.
# Put your commands here
COMMAND1 = ""
# Your handling code goes in this function
def handle_command(command):
"""
Determine if the command is valid. If so, take action and return
a response, if necessary.
"""
response = ""
if command.find(COMMAND1) >= 0:
response = "Huh?"
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment