From 5d0038a92a833d6c33ac09c79503903ab849c92b Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 29 Sep 2017 17:49:12 +0000 Subject: [PATCH] Dan is a stupid --- commands/random/astronomy-picture-of-the-day.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random/astronomy-picture-of-the-day.js b/commands/random/astronomy-picture-of-the-day.js index f5e1e059..cdbaca46 100644 --- a/commands/random/astronomy-picture-of-the-day.js +++ b/commands/random/astronomy-picture-of-the-day.js @@ -19,7 +19,7 @@ module.exports = class AstronomyPictureOfTheDayCommand extends Command { try { const { body } = await snekfetch .get('https://api.nasa.gov/planetary/apod') - .query({ qpi_key: GOV_KEY }); + .query({ api_key: GOV_KEY }); return msg.say(shorten(body.explanation), { files: [body.url] }); } catch (err) { return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);