aboutsummaryrefslogtreecommitdiffstats
path: root/project/botmanager.py
diff options
context:
space:
mode:
authorJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-07-21 18:16:16 +0300
committerJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-07-21 18:16:16 +0300
commit392a51b858dde0c68ce93a9415c3841062a70805 (patch)
tree2553cd5c34091ec15b5fa57e815c2a250ee2de51 /project/botmanager.py
parente13ae89fcbd1543bf583e7a56f82ccaef4dfa8d4 (diff)
Add API token config parameter for API authentication
Diffstat (limited to 'project/botmanager.py')
-rw-r--r--project/botmanager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/project/botmanager.py b/project/botmanager.py
index 151e94d..1a3e037 100644
--- a/project/botmanager.py
+++ b/project/botmanager.py
@@ -37,11 +37,12 @@ class BotManager(object):
logging.error("Error creating bot listener. src will now exit...")
sys.exit(1)
- def set_parameters(self, shoutbox_api_url, telegram_chat_id, api_call_interval):
+ def set_parameters(self, shoutbox_api_url, telegram_chat_id, api_call_interval, api_auth_token):
"""Store parameters in the manager instance"""
ShoutboxCommunicator.url = shoutbox_api_url
TelegramCommunicator.chat_id = telegram_chat_id
ShoutboxCommunicator.interval = api_call_interval
+ ShoutboxCommunicator.token = api_auth_token
def start(self):
"""Try fetching bot information from Telegram to check connection"""