diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-02-10 21:39:09 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-02-15 00:20:26 +0100 |
commit | 82c00c5a574b5cb9f78852acb9b8ba77ea89458f (patch) | |
tree | 585cfb208ef4c0faa921e2038a394070f8f4ecb5 /wee_slack.py | |
parent | 4ee9e740af1e550b6b23cb643019570b9e3e66f2 (diff) | |
download | wee-slack-82c00c5a574b5cb9f78852acb9b8ba77ea89458f.tar.gz |
Only print one line after connecting to a team
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/wee_slack.py b/wee_slack.py index 0625c29..3e68794 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2428,14 +2428,8 @@ def handle_rtmstart(login_data, eventrouter): t.set_reconnect_url(login_data['url']) t.connect() - t.buffer_prnt('Connected to Slack') - t.buffer_prnt('{:<20} {}'.format("Websocket URL", login_data["url"])) - t.buffer_prnt('{:<20} {}'.format("User name", login_data["self"]["name"])) - t.buffer_prnt('{:<20} {}'.format("User ID", login_data["self"]["id"])) - t.buffer_prnt('{:<20} {}'.format("Team name", login_data["team"]["name"])) - t.buffer_prnt('{:<20} {}'.format("Team domain", login_data["team"]["domain"])) - t.buffer_prnt('{:<20} {}'.format("Team id", login_data["team"]["id"])) - + t.buffer_prnt('Connected to Slack team {} ({}) with username {}'.format( + login_data["team"]["name"], t.domain, t.nick)) dbg("connected to {}".format(t.domain)) |