From b290f4a20f754b881bce9a7c392cf83c231d1292 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Fri, 5 Aug 2016 19:33:52 +0100 Subject: [PATCH] spammer: add more triggers --- tipbot/modules/spammer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tipbot/modules/spammer.py b/tipbot/modules/spammer.py index f27b3b7..e9cb607 100644 --- a/tipbot/modules/spammer.py +++ b/tipbot/modules/spammer.py @@ -56,8 +56,12 @@ def OnMessage(event,*args,**kwargs): line=line.lower().strip() log_info("Testing: " + line) - for expr in ["astounding!", "triple your btc!", "pm me to begin!", "hatt uu"]: - if re.match(.*+expr+".*",line): + for expr in [ + "astounding!", "triple your btc", "pm me to begin", "hatt uu", + "accelerate the blockchain", "u stappid", "me a message to begin", + "the ops have confirmed", "expanding technology", "exploding technology" + ]: + if re.match(".*"+expr+".*",line): link=kwargs['link'] Ban(link) return