From 3004d38522ad5ae488f5a200a3f9d383eb92bf0b Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Mon, 24 Oct 2016 15:36:28 +0000 Subject: [PATCH] Fixed call of the void api token read. Updated WaitonUtil sheet id, will probably need to change again as year goes on. --- CallOfTheVoid.py | 4 ++-- WaitonUtil.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CallOfTheVoid.py b/CallOfTheVoid.py index c43ce58..e4b119b 100644 --- a/CallOfTheVoid.py +++ b/CallOfTheVoid.py @@ -3,9 +3,9 @@ from slackclient import SlackClient #One last call from beyond the grave apifile = open("apitoken.txt", 'r') -SLACK_API = next(apifile) +SLACK_API = next(apifile).strip() apifile.close(); slack = SlackClient(SLACK_API) -slack.api_call("chat.postMessage", channel="@jacobhenry", text="Alas poor yorrick. I died!") +slack.api_call("chat.postMessage", channel="@jacobhenry", text="one error. and im die?") diff --git a/WaitonUtil.py b/WaitonUtil.py index 3804889..e79bf5b 100644 --- a/WaitonUtil.py +++ b/WaitonUtil.py @@ -7,7 +7,8 @@ Only really kept separate for neatness sake. """ #ID of waiton sheet on drive -WAITON_SHEET_ID = "1J3WDe-OI7YjtDv6mMlM1PN3UlfZo8_y9GBVNBEPwOhE" +#WAITON_SHEET_ID = "1J3WDe-OI7YjtDv6mMlM1PN3UlfZo8_y9GBVNBEPwOhE" #A term 2016 +WAITON_SHEET_ID = "1I4keh9cIt0x-WwZAdnBsZefSZV-tMIAy37r2NLUOLh4" #First week b term