mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
spammer: triggers don't have to be lowercase anymore
Also add "allah is doing"
This commit is contained in:
parent
97b43c5af3
commit
29f6f1fdaa
1 changed files with 8 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue