aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-06 17:35:27 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-06 17:35:27 -0800
commite924b06077f7e3532664aa7edc3b95a406f87cea (patch)
tree0e062cd967b4190055f98d54e364cc924ba320ea
parent17d21c0c07183972aee672866582c467527992df (diff)
downloadwee-slack-e924b06077f7e3532664aa7edc3b95a406f87cea.tar.gz
openweb
-rw-r--r--wee_slack.py4
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