From b0c615d48abcbd34dd64cfc8346f666bc5859d9a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 5 Sep 2017 04:03:40 +0000 Subject: [PATCH] I shouldn't have to do this --- 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 33ee671e..55ec84ea 100644 --- a/commands/image-edit/meme.js +++ b/commands/image-edit/meme.js @@ -51,8 +51,8 @@ module.exports = class MemeCommand extends Command { const { type, top, bottom } = args; try { const { body } = await snekfetch - .get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`); - return msg.say(body.masked); + .get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`, { followRedirects: true }); + return msg.say(body.direct.masked); } catch (err) { return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); }