From 3d250f65dd8a33b2a1fabb0c80faed2ad01a1922 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 11 Apr 2018 01:14:02 +0000 Subject: [PATCH] Garbage --- commands/image-edit/shields-io-badge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/image-edit/shields-io-badge.js b/commands/image-edit/shields-io-badge.js index 48a14cc4..e1e9156f 100644 --- a/commands/image-edit/shields-io-badge.js +++ b/commands/image-edit/shields-io-badge.js @@ -36,7 +36,7 @@ module.exports = class ShieldsIoBadgeCommand extends Command { async run(msg, { subject, status, color }) { try { const { body, headers } = await snekfetch.get(`https://img.shields.io/badge/${subject}-${status}-${color}.png`); - if (headers['Content-Type'] !== 'image/png') return msg.reply('Could not create the badge...'); + if (headers['content-type'] !== 'image/png') return msg.reply('Could not create the badge...'); return msg.say({ files: [{ attachment: body, name: 'badge.png' }] }); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);