Add filters

This commit is contained in:
Tanner Collin 2022-08-11 20:40:15 +00:00
parent 5509264136
commit 9220022d3e

View File

@ -71,12 +71,15 @@ async def message_tanner(name, website, message, mid):
if 'sex' in message or 'porn' in message:
return
if 'lasertest' in name:
if 'lasertest' in name or 'porn' in name:
return
if 'slkjfdf.net' in website:
return
if name.replace(' ', '') in ['website', 'webpage', 'homepage']:
return
report = 'Name: {}\n\nWebsite: {}\n\nMessage: {}\n\n/allow_{}'
try:
await bot.send_message(TANNER, message=report.format(name, website, message, mid))