diff options
author | Paulo Cesar Zanco <paulo.zanco@gmail.com> | 2018-04-12 17:19:06 -0300 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-04-12 22:19:06 +0200 |
commit | 5f7318d58337cf4ff429e9c9d6f33d55940c03c0 (patch) | |
tree | f88d8ff11399b4e208a63d8e7b580729bbfc1abe /wee_slack.py | |
parent | 696cf07850676b0cab4bccd1ba04a37b76c420ba (diff) | |
download | wee-slack-5f7318d58337cf4ff429e9c9d6f33d55940c03c0.tar.gz |
Change slack away/back to use users.setPresence (#559)
Fixes #552
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index 270f424..1b6919d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3398,7 +3398,7 @@ def command_away(data, current_buffer, args): /slack away """ team = EVENTROUTER.weechat_controller.buffers[current_buffer].team - s = SlackRequest(team.token, "presence.set", {"presence": "away"}, team_hash=team.team_hash) + s = SlackRequest(team.token, "users.setPresence", {"presence": "away"}, team_hash=team.team_hash) EVENTROUTER.receive(s) @@ -3430,7 +3430,7 @@ def command_back(data, current_buffer, args): /slack back """ team = EVENTROUTER.weechat_controller.buffers[current_buffer].team - s = SlackRequest(team.token, "presence.set", {"presence": "active"}, team_hash=team.team_hash) + s = SlackRequest(team.token, "users.setPresence", {"presence": "auto"}, team_hash=team.team_hash) EVENTROUTER.receive(s) |