From 9f3cd4d2dbe1edfe3f6054b9bbbb47c08bdc2994 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Mar 2021 22:53:53 -0400 Subject: [PATCH] NSFW Filter in company --- commands/search/company.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/search/company.js b/commands/search/company.js index c0d9df79..d23110b3 100644 --- a/commands/search/company.js +++ b/commands/search/company.js @@ -34,6 +34,9 @@ module.exports = class CompanyCommand extends Command { try { const data = await this.fetchCompany(query); if (!data) return msg.say('Could not find any results.'); + if (!msg.channel.nsfw && this.client.adultSiteList.includes(data.domain)) { + return msg.reply('This site is NSFW.'); + } const embed = new MessageEmbed() .setTitle(data.name) .setImage(data.logo)