From 7612e66aecfe6f5abef0eb814026a8b2d7522b1f Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 26 Sep 2018 23:42:51 +0000 Subject: [PATCH] Fix bird --- commands/random/bird.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random/bird.js b/commands/random/bird.js index dd95f67b..33e97759 100644 --- a/commands/random/bird.js +++ b/commands/random/bird.js @@ -16,7 +16,7 @@ module.exports = class BirdCommand extends Command { async run(msg) { try { const { body } = await request.get('http://random.birb.pw/tweet.json/'); - return msg.say({ files: [`http://random.birb.pw/img/${body.file}`] }); + return msg.say({ files: [{ attachment: `http://random.birb.pw/img/${body.file}`, name: body.file }] }); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); }