From 3c83f387a4f404f02222f5becee920c01e8388f5 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sat, 25 Dec 2021 22:59:00 -0700 Subject: [PATCH] ficc things --- commands/anime/char.js | 12 +++++------- commands/anime/charimage.js | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/commands/anime/char.js b/commands/anime/char.js index 3cceb66..f75ff8d 100644 --- a/commands/anime/char.js +++ b/commands/anime/char.js @@ -357,13 +357,11 @@ module.exports = { if (message.attachments.size > 1) { Array.from(message.attachments.keys()).forEach(i => images.push(message.attachments.get(i).url)); } else { - if (!args[0]) { - let tempchar = message.attachments.size - ? message.attachments.first().url - : await ask(message, `Please paste the image or a link to the image you'd like to add to **${ch.name}**.`, 60000, false, true); - if (!tempchar) {return;} - args = tempchar.split(/\s+/g); - } + let tempchar = message.attachments.size + ? message.attachments.first().url + : await ask(message, `Please paste the image or a link to the image you'd like to add to **${ch.name}**.`, 60000, false, true); + if (!tempchar) {return;} + args = tempchar.split(/\s+/g); images.push(args.join(" ")); } let f; diff --git a/commands/anime/charimage.js b/commands/anime/charimage.js index 4c7afe1..a0ce21c 100644 --- a/commands/anime/charimage.js +++ b/commands/anime/charimage.js @@ -77,13 +77,11 @@ module.exports = { if (message.attachments.size > 1) { Array.from(message.attachments.keys()).forEach(i => images.push(message.attachments.get(i).url)); } else { - if (!args[0]) { - let tempchar = message.attachments.size - ? message.attachments.first().url - : await ask(message, `Please paste the image or a link to the image you'd like to add to **${ch.name}**.`, 60000, false, true); - if (!tempchar) {return;} - args = tempchar.split(/\s+/g); - } + let tempchar = message.attachments.size + ? message.attachments.first().url + : await ask(message, `Please paste the image or a link to the image you'd like to add to **${ch.name}**.`, 60000, false, true); + if (!tempchar) {return;} + args = tempchar.split(/\s+/g); images.push(args.join(" ")); } let f;