From 5d66ab8b9db423c47b557898bb43143e143cdaef Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 18 Sep 2017 12:50:58 +0000 Subject: [PATCH] Beep --- commands/image-edit/meme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/image-edit/meme.js b/commands/image-edit/meme.js index 80232202..25355d47 100644 --- a/commands/image-edit/meme.js +++ b/commands/image-edit/meme.js @@ -51,11 +51,11 @@ module.exports = class MemeCommand extends Command { name: meme.name.toLowerCase() })); if (type === 'list') return msg.say(list(memeList.map(meme => meme.name), 'or'), { split: { char: ' ' } }); - if (!memes.some(meme => meme.name === type)) return msg.say(`Invalid type, please use ${msg.usage('list')}.`); + if (!memeList.some(meme => meme.name === type)) return msg.say(`Invalid type, please use ${msg.usage('list')}.`); const { body } = await snekfetch .post('https://api.imgflip.com/caption_image') .query({ - template_id: memes.find(meme => meme.name === type).id, + template_id: memeList.find(meme => meme.name === type).id, username: IMGFLIP_USER, password: IMGFLIP_PASS, text0: top,