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;