From 848b27429797a52d1467457cd41488b5c1556525 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 14 May 2021 10:26:15 -0500 Subject: [PATCH] Fix ISS embed --- bot.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bot.js b/bot.js index 08db455..b3fbfc9 100644 --- a/bot.js +++ b/bot.js @@ -374,9 +374,7 @@ async function locateISS(message) { await fetch ("http://api.open-notify.org/astros.json") .then(request => request.json()) .then(data => { - data.people.forEach((astronaut, index) => { - issEmbed.addField(`Astronaut ${index + 1}`, astronaut.name, true); - }) + issEmbed.addField(`Astronauts`, `${data.people.join(" • ")}`); message.channel.send(issEmbed); }); });