aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-06-01 21:54:44 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-06-02 23:09:20 +0200
commitc6bf8805cbd917c242bc251c0d7889dfde435884 (patch)
treec5d97327c3580f144bdd2a424dc6cd2e1e8d1671 /wee_slack.py
parent86c93bc57766affd309b52d70a7a692f4ad1fce6 (diff)
downloadwee-slack-c6bf8805cbd917c242bc251c0d7889dfde435884.tar.gz
Print error when profile/status couldn't be set
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 18ff60b..3c37102 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2679,6 +2679,12 @@ def handle_usergroupsuserslist(users_json, eventrouter, **kwargs):
user = team.users[user_identifier]
team.buffer_prnt(" {:<25}({})".format(user.name, user.presence))
+
+def handle_usersprofileset(json, eventrouter, **kwargs):
+ if not json['ok']:
+ w.prnt('', 'ERROR: Failed to set profile: {}'.format(json['error']))
+
+
###### New/converted process_ and subprocess_ methods
def process_hello(message_json, eventrouter, **kwargs):
kwargs['team'].subscribe_users_presence()