Skip to content

Commit

Permalink
fix interpolation on default archive message
Browse files Browse the repository at this point in the history
  • Loading branch information
John Theodore committed Mar 11, 2019
1 parent 7625d36 commit 2673bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slack-autoarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def get_whitelist_keywords(self):
return list(keywords)

def get_channel_alerts(self):
archive_msg = "This channel has had no activity for %d days. It is being auto-archived. If you feel this is a mistake you can <https://get.slack.help/hc/en-us/articles/201563847-Archive-a-channel#unarchive-a-channel|unarchive this channel> to bring it back at any point. In the future, you can add '%%noarchive' to your channel topic or purpose to avoid being archived. This script was run from this repo: https://github.com/Symantec/slack-autoarchive" % self.days_inactive
alerts = {
'channel_template': 'This channel has had no activity for %s days. It is being auto-archived. If you feel this is a mistake you can <https://get.slack.help/hc/en-us/articles/201563847-Archive-a-channel#unarchive-a-channel|unarchive this channel> to bring it back at any point. In the future, you can add "%noarchive" to your channel topic or purpose to avoid being archived. This script was run from this repo: https://github.com/Symantec/slack-autoarchive'
'channel_template': archive_msg
}
if os.path.isfile('templates.json'):
with open('templates.json') as f:
Expand Down
File renamed without changes.

0 comments on commit 2673bd3

Please sign in to comment.