Merge pull request #2 from yamanq/master

Various Optimizations
This commit is contained in:
ksjdragon 2017-10-23 22:42:58 -04:00 committed by GitHub
commit 35a09b5528
3 changed files with 4 additions and 2 deletions

3
breakbot/README.md Normal file
View File

@ -0,0 +1,3 @@
# breakbot
Simple countdown bot for slack.
This bot counts down to a custom date daily. Additionally, there are custom commands to ask for other options.

View File

@ -13,7 +13,6 @@ f.close()
# constants # constants
AT_BOT = "<@" + BOT_ID + ">" AT_BOT = "<@" + BOT_ID + ">"
EXAMPLE_COMMAND = "do"
# instantiate Slack & Twilio clients # instantiate Slack & Twilio clients
slack_client = SlackClient(sys.argv[2]) slack_client = SlackClient(sys.argv[2])

View File

@ -16,4 +16,4 @@ if __name__ == "__main__":
if 'name' in user and user.get('name') == BOT_NAME: if 'name' in user and user.get('name') == BOT_NAME:
print("Bot ID for '" + user['name'] + "' is " + user.get('id')) print("Bot ID for '" + user['name'] + "' is " + user.get('id'))
else: else:
print("could not find bot user with the name " + BOT_NAME) print("Could not find bot user with the name " + BOT_NAME)