Skip to content

Instantly share code, notes, and snippets.

@Elleo
Created January 11, 2018 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elleo/95e93a6d51753632622fec0156c116d7 to your computer and use it in GitHub Desktop.
Save Elleo/95e93a6d51753632622fec0156c116d7 to your computer and use it in GitHub Desktop.
while True:
message, channel = parse_slack_output(slack_client.rtm_read())
if message and channel:
if message.lower().startswith(".add-saved-reply"):
add_saved_reply(message, channel, slack_client, cape_client)
else:
handle_question(message, channel, slack_client, cape_client)
time.sleep(READ_WEBSOCKET_DELAY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment