commit
35a09b5528
3
breakbot/README.md
Normal file
3
breakbot/README.md
Normal 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.
|
||||||
@ -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])
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user