diff --git a/tipbot/modules/spammer.py b/tipbot/modules/spammer.py index f27b2a5..72205ea 100644 --- a/tipbot/modules/spammer.py +++ b/tipbot/modules/spammer.py @@ -44,6 +44,13 @@ def OnUserJoined(event,*args,**kwargs): if nick=="lbft" or nick=="lbft_": Ban(link) +triggers=[l.lower() for l 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", + "allah is doing" +]] + def OnMessage(event,*args,**kwargs): line=kwargs['message'] if not line: @@ -54,11 +61,7 @@ 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", - "accelerate the blockchain", "u stappid", "me a message to begin", - "the ops have confirmed", "expanding technology", "exploding technology" - ]: + for expr in triggers: if re.match(".*"+expr+".*",line): link=kwargs['link'] Ban(link)