mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
NSFW Filter in company
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user