From b72aaaf2dff628d81e14314a870738800ea37f7d Mon Sep 17 00:00:00 2001 From: jowj Date: Sun, 21 Jan 2018 23:19:16 -0600 Subject: [PATCH] changing testcase to 'test' text. --- mojojojo-bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mojojojo-bot.py b/mojojojo-bot.py index 9b0173d..d2ac642 100644 --- a/mojojojo-bot.py +++ b/mojojojo-bot.py @@ -76,10 +76,10 @@ if __name__ == "__main__": for event in events: if ( 'bots-like-gaston' in event and - 'AI ' in event and + 'test' in event and event.get(type) == 'message' ) : - if "AI " in text.lower and link not in text: + if "test" in text.lower and link not in text: slack_client.api_call( "reactions.add", name = thumbsup