aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorAidan Epstein <aidan@jmad.org>2020-03-25 20:00:23 -0700
committerAidan Epstein <aidan@jmad.org>2020-03-25 20:00:23 -0700
commitb61955f0000654e20173c3d77ca5c8ce37c004d6 (patch)
treed681aa51393c214e88c454906f9918cfac8c45f6 /wee_slack.py
parent499f95de0a8258311708fc725cc72c94dfc184bb (diff)
downloadwee-slack-b61955f0000654e20173c3d77ca5c8ce37c004d6.tar.gz
Add new notify_thread case for subscriptions.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 9d20551..83ba3e3 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2570,6 +2570,8 @@ class SlackMessage(object):
template = "New message in thread {hash}, channel {channel} in which you participated"
elif action == "response":
template = "New message in thread {hash} in response to own message in {channel}"
+ elif action == "subscribed":
+ template = "New message in thread {hash}, channel {channel} to which you are subscribed"
else:
template = "Notification for message in thread {hash}, channel {channel}"
message = template.format(hash=self.hash, channel=self.channel.formatted_name())