Skip to content

Commit

Permalink
Initial message being sent
Browse files Browse the repository at this point in the history
  • Loading branch information
Denvar94 committed Jul 29, 2015
1 parent 0f9cc16 commit e449bc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Get countdown notification for upcoming events in Slack chatrooms",
"repository": "https://github.com/Denvar94/slack-countdown.git",
"scripts":{
"postdeploy": "open scheduler"
"postdeploy": "python countdown.py initiate"
},
"env": {
"SLACK_URL": null
Expand Down
8 changes: 8 additions & 0 deletions countdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ def deadline(date,event):

post(result)


@manager.command
def initiate():
payload = { text: "App is now connected to your Slack Channel."}
r = requests.post(SLACK_URL, data=json.dumps(payload))




if __name__ == "__main__":
manager.run()
Expand Down

0 comments on commit e449bc1

Please sign in to comment.