From 1eb273a2613302935f9f28bdf2baba724fba8e7f Mon Sep 17 00:00:00 2001 From: echodaniel <31143925+echodaniel@users.noreply.github.com> Date: Wed, 22 Aug 2018 23:11:47 -0600 Subject: [PATCH] Update CommitBot.py Making additional edits for https://github.com/commitsto/commits.to/issues/240 --- CommitBot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CommitBot.py b/CommitBot.py index 709bc68f..36875690 100644 --- a/CommitBot.py +++ b/CommitBot.py @@ -47,13 +47,13 @@ def handle_command(command, channel): Executes bot command if the command is known """ # Default response is help text for the user - default_response = "Not sure what you mean. Try *{}*.".format(EXAMPLE_COMMAND) + default_response = "Not sure what you mean. Try *{}*.".format(alice.commits.to/file_report_by_monday) # Finds and executes the given command, filling in response response = None # This is where you start to implement more commands! - if command.startswith(EXAMPLE_COMMAND): - response = "Sure...write some more code then I can do that!" + if command.startswith(user_id.commits.to/): + response = "There we go! Finish that URL and I'll see what I can whip up." # Sends the response back to the channel slack_client.api_call(