diff options
author | Aidan Epstein <aidan@jmad.org> | 2020-03-25 20:00:23 -0700 |
---|---|---|
committer | Aidan Epstein <aidan@jmad.org> | 2020-03-25 20:00:23 -0700 |
commit | b61955f0000654e20173c3d77ca5c8ce37c004d6 (patch) | |
tree | d681aa51393c214e88c454906f9918cfac8c45f6 /wee_slack.py | |
parent | 499f95de0a8258311708fc725cc72c94dfc184bb (diff) | |
download | wee-slack-b61955f0000654e20173c3d77ca5c8ce37c004d6.tar.gz |
Add new notify_thread case for subscriptions.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
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()) |