This commit is contained in:
Daniel Odendahl Jr
2018-03-05 22:49:58 +00:00
parent d7b5ffbbc4
commit 3c6ae829e5
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class DanbooruCommand extends Command {
limit: 1
});
if (!body.length || !body[0].file_url) return msg.say('Could not find any results.');
return msg.say(`https://danbooru.donmai.us${body[0].file_url}`);
return msg.say(body[0].file_url);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}