Fix what-anime nsfw filter

This commit is contained in:
Dragon Fire
2020-01-12 20:21:32 -05:00
parent b578e365ce
commit b147e00d3c
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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}`
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "109.7.0",
"version": "109.7.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {