From d1313f1c7dcad54a2f578259cce29208e8c1549e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 23 Sep 2017 20:17:08 +0000 Subject: [PATCH] Beep --- commands/search/safebooru.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/safebooru.js b/commands/search/safebooru.js index 5c95e41e..734bbf04 100644 --- a/commands/search/safebooru.js +++ b/commands/search/safebooru.js @@ -36,7 +36,7 @@ module.exports = class SafebooruCommand extends Command { const posts = msg.channel.nsfw ? parsed.post : parsed.post.filter(post => post.rating === 's'); return msg.say(stripIndents` ${query ? `Results for ${query}:` : 'Random Image:'} - https:${posts[Math.floor(Math.random() * posts.length)].file_url} + https:${posts[Math.floor(Math.random() * posts.length)]._attributes.file_url} `); } catch (err) { return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);