Add filters
This commit is contained in:
parent
5509264136
commit
9220022d3e
5
t0sig.py
5
t0sig.py
|
@ -71,12 +71,15 @@ async def message_tanner(name, website, message, mid):
|
||||||
if 'sex' in message or 'porn' in message:
|
if 'sex' in message or 'porn' in message:
|
||||||
return
|
return
|
||||||
|
|
||||||
if 'lasertest' in name:
|
if 'lasertest' in name or 'porn' in name:
|
||||||
return
|
return
|
||||||
|
|
||||||
if 'slkjfdf.net' in website:
|
if 'slkjfdf.net' in website:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if name.replace(' ', '') in ['website', 'webpage', 'homepage']:
|
||||||
|
return
|
||||||
|
|
||||||
report = 'Name: {}\n\nWebsite: {}\n\nMessage: {}\n\n/allow_{}'
|
report = 'Name: {}\n\nWebsite: {}\n\nMessage: {}\n\n/allow_{}'
|
||||||
try:
|
try:
|
||||||
await bot.send_message(TANNER, message=report.format(name, website, message, mid))
|
await bot.send_message(TANNER, message=report.format(name, website, message, mid))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user