From 2af879e8a4422f2f8125afbbef5f3d151ab5aae5 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 4 Sep 2018 01:29:56 +0000 Subject: [PATCH] Fix undefined in meme --- commands/random/meme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/random/meme.js b/commands/random/meme.js index 94c8692d..8596b8df 100644 --- a/commands/random/meme.js +++ b/commands/random/meme.js @@ -22,8 +22,8 @@ module.exports = class MemeCommand extends Command { if (!posts.length) return msg.reply(`I couldn't fetch any images from r/${subreddit}...`); const post = posts[Math.floor(Math.random() * posts.length)]; return msg.say(stripIndents` - **r/${subreddit}** ${post.title} - ${post.url} + **r/${subreddit}** ${post.data.title} + ${post.data.url} `); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);