diff --git a/commands/analyze/what-anime.js b/commands/analyze/what-anime.js index 9c99195a..ca7cc7b7 100644 --- a/commands/analyze/what-anime.js +++ b/commands/analyze/what-anime.js @@ -37,7 +37,9 @@ module.exports = class WhatAnimeCommand extends Command { const { body } = await request.get(screenshot); const result = await this.search(body, msg.channel.nsfw); if (result === 'size') return msg.reply('Please do not send an image larger than 10MB.'); - if (result.nsfw) return msg.reply('This is from a hentai, and this isn\'t an NSFW channel, pervert.'); + if (result.nsfw && !msg.channel.nsfw) { + return msg.reply('This is from a hentai, and this isn\'t an NSFW channel, pervert.'); + } return msg.reply( `I'm ${result.prob}% sure this is from ${result.title}${result.episode ? ` episode ${result.episode}` diff --git a/package.json b/package.json index ae84bb22..16ff5cec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "109.7.0", + "version": "109.7.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {