fix
Some checks failed
fetch npm modules / f0ck the f0cker (push) Failing after 20s

This commit is contained in:
Flummi 2023-07-29 13:03:50 +02:00
parent 78a2524ce9
commit f9e10abb51

View File

@ -29,7 +29,13 @@ export default async bot => {
if(links.length === 0) if(links.length === 0)
return false; return false;
if(!e.message.match(/\!f(0ck)?/i)) if(e.message.match(/\!i(gnore)?\b/))
return false;
if(!e.channel.includes("f0ck") && !e.message.match(/\!f(0ck)?\b/i))
return false;
if(e.type === 'tg' && !e.message.match(/\!f(0ck)?\b/i))
return false; return false;
console.log(`parsing ${links.length} link${links.length > 1 ? "s" : ""}...`); console.log(`parsing ${links.length} link${links.length > 1 ? "s" : ""}...`);