From 96c40a33809b96f1afab5c9bc75aacfbac9b1ebe Mon Sep 17 00:00:00 2001 From: Samuel Gratzl Date: Fri, 8 Sep 2017 23:14:16 +0200 Subject: [PATCH] integrate https://github.com/kfei/slack-cleaner/pull/48 --- slack_cleaner/args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slack_cleaner/args.py b/slack_cleaner/args.py index ef0b4de..436a6fd 100644 --- a/slack_cleaner/args.py +++ b/slack_cleaner/args.py @@ -41,6 +41,8 @@ def __init__(self): # Conditions p.add_argument('--user', help='Delete messages/files from certain user') + p.add_argument('--botname', + help='Delete messages/files from certain bots') p.add_argument('--bot', action='store_true', help='Delete messages from bots') p.add_argument('--after', @@ -78,6 +80,7 @@ def __init__(self): self.mpdirect_name = args.mpdirect self.user_name = args.user + self.botname = args.botname self.bot = args.bot self.start_time = args.after self.end_time = args.before