diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-06 17:35:27 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-06 17:35:27 -0800 |
commit | e924b06077f7e3532664aa7edc3b95a406f87cea (patch) | |
tree | 0e062cd967b4190055f98d54e364cc924ba320ea | |
parent | 17d21c0c07183972aee672866582c467527992df (diff) | |
download | wee-slack-e924b06077f7e3532664aa7edc3b95a406f87cea.tar.gz |
openweb
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index b655b16..52ff1ee 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2421,6 +2421,10 @@ def command_mute(current_buffer, args): s = SlackRequest(team.token, "users.prefs.set", {"name": "muted_channels", "value": ",".join(team.muted_channels)}, team_hash=team.team_hash, channel_identifier=channel_id) EVENTROUTER.receive(s) +def command_openweb(current_buffer, args): + channel = EVENTROUTER.weechat_controller.buffers[current_buffer] + url = "https://{}/archives/{}".format(channel.team.domain, channel.slack_name) + w.prnt_date_tags(channel.team.channel_buffer, SlackTS().major, "openweb,logger_backlog_end,notify_none", url) def command_nodistractions(current_buffer, args): global hide_distractions |