From 05ca5bf25cc91bca428f56bbfd826c4d349edd31 Mon Sep 17 00:00:00 2001 From: simon mackinnon Date: Thu, 5 Mar 2020 19:28:32 +1100 Subject: [PATCH] changed check for subtype to check for bot_id, must have been a attributes change at some point --- event_step1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event_step1.py b/event_step1.py index fc76cbd..e3a6d23 100644 --- a/event_step1.py +++ b/event_step1.py @@ -47,7 +47,7 @@ def event_processor(event_payload): # the event will have a subtype if it's an automated or bot message # ignoring those and exiting early, avoiding infinite loops - if "subtype" in event_payload["event"]: + if "bot_id" in event_payload["event"]: return True # other cases are messages posted by users, responding else: