From 17404568fb36fd199e03e70bcd0119f57aec92f2 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 15 Feb 2019 14:33:15 +0000 Subject: [PATCH] Clean up APOD embed --- commands/events/apod.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands/events/apod.js b/commands/events/apod.js index 4b758aa4..dd076469 100644 --- a/commands/events/apod.js +++ b/commands/events/apod.js @@ -24,6 +24,12 @@ module.exports = class ApodCommand extends Command { const embed = new MessageEmbed() .setTitle(body.title) .setDescription(shorten(body.explanation)) + .setColor(0x2E528E) + .setAuthor( + 'Astronomy Picture of the Day', + 'https://i.imgur.com/AAYoZrq.jpg', + 'https://apod.nasa.gov/apod/astropix.html' + ) .setImage(body.media_type === 'image' ? body.url : null) .setURL(body.url) .setFooter(`Image Credits: ${body.copyright || 'Public Domain'}`)