From 805473d55a963ba68cd54f85c068e657c4332f0a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 23 Oct 2017 03:24:50 +0000 Subject: [PATCH] thing --- commands/search/gelbooru.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/gelbooru.js b/commands/search/gelbooru.js index 14bee91b..83ed9c64 100644 --- a/commands/search/gelbooru.js +++ b/commands/search/gelbooru.js @@ -33,7 +33,7 @@ module.exports = class GelbooruCommand extends Command { }); const parsed = xml2js(text, { compact: true }).posts; if (!parsed.post || !parsed.post.length) return msg.say('Could not find any results.'); - return msg.say(`${parsed.post[Math.floor(Math.random() * parsed.post.length)]._attributes.file_url}`); + return msg.say(parsed.post[Math.floor(Math.random() * parsed.post.length)]._attributes.file_url); } catch (err) { return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); }