forked from Galactic/galactic-bot
blergh
This commit is contained in:
parent
58e4980bc3
commit
606423d74e
@ -480,8 +480,8 @@ module.exports = class AutoModeration extends Observer {
|
|||||||
// console.log(parts, validTld);
|
// console.log(parts, validTld);
|
||||||
if (!validTld) continue;
|
if (!validTld) continue;
|
||||||
const valid = await resolver.validateDomain(domain);
|
const valid = await resolver.validateDomain(domain);
|
||||||
if (!valid && match.includes(`${domain}/`)) {
|
if (!valid) {
|
||||||
this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) });
|
if (match.includes(`${domain}/`)) this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) });
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user