mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Fix what-anime nsfw filter
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "109.7.0",
|
||||
"version": "109.7.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user