diff --git a/src/cmd/misc/saucenao/saucenao.js b/src/cmd/misc/saucenao/saucenao.js index 2d581e44..64dd2f71 100644 --- a/src/cmd/misc/saucenao/saucenao.js +++ b/src/cmd/misc/saucenao/saucenao.js @@ -23,7 +23,7 @@ exports.source = { usage: '', main(bot, ctx) { return new Promise((resolve, reject) => { - if (!ctx.attachments[0] && (!ctx.suffix || !urlRegex.test(ctx.suffix))) { + if (!ctx.attachments[0] || ctx.attachments[1] && (!ctx.suffix || !urlRegex.test(ctx.suffix))) { ctx.createMessage('Please provide an image.').then(resolve).catch(reject); } else { let url = ctx.attachments[0] ? ctx.attachments[0].url : ctx.suffix;