From e92044980d5fcbac3750105c0d26868cc6273ab8 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Thu, 4 Apr 2019 23:07:06 -0400 Subject: [PATCH] Slave ignores bot messages --- plugins/slavestothemachine.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/slavestothemachine.py b/plugins/slavestothemachine.py index f84b361..d153e82 100644 --- a/plugins/slavestothemachine.py +++ b/plugins/slavestothemachine.py @@ -22,6 +22,10 @@ async def count_work_callback(event: slack_util.Event, match: Match) -> None: if event.user is None: return + # If bot, continue + if event.bot is not None: + return + # Make an error wrapper verb = slack_util.VerboseWrapper(event)