aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-01-28 19:27:51 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2019-02-15 00:20:26 +0100
commitc8aa7db2e9731cc003718d71a326a12d64e4c438 (patch)
tree73bcdfae9b4cf79d594dde1a8a7dce8e998c671e /wee_slack.py
parentc15bc7c17d0a70e3bd0b3480a6cc83af16f617b3 (diff)
downloadwee-slack-c8aa7db2e9731cc003718d71a326a12d64e4c438.tar.gz
Print connecting message on start
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 2504da3..5c75431 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4381,6 +4381,8 @@ if __name__ == "__main__":
# attach to the weechat hooks we need
tokens = map(string.strip, config.slack_api_token.split(','))
+ w.prnt('', 'Connecting to {} slack team{}.'
+ .format(len(tokens), '' if len(tokens) == 1 else 's'))
for t in tokens:
s = initiate_connection(t)
EVENTROUTER.receive(s)