From a0621c28e89bdbef094fd9c2f57680dcfc271857 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 24 Sep 2019 13:40:51 -0400 Subject: [PATCH] What Anime now supports up to 10MB images --- commands/analyze/what-anime.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/analyze/what-anime.js b/commands/analyze/what-anime.js index 685acc70..9c99195a 100644 --- a/commands/analyze/what-anime.js +++ b/commands/analyze/what-anime.js @@ -36,7 +36,7 @@ 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 1MB.'); + 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.'); return msg.reply( `I'm ${result.prob}% sure this is from ${result.title}${result.episode @@ -61,7 +61,7 @@ module.exports = class WhatAnimeCommand extends Command { } async search(file) { - if (Buffer.byteLength(file) > 1e+6) return 'size'; + if (Buffer.byteLength(file) > 1e+7) return 'size'; const { body } = await request .post('https://trace.moe/api/search') .query({ token: WHATANIME_KEY }) diff --git a/package.json b/package.json index a3ddc436..30a864a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "107.7.1", + "version": "107.7.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {