Browse Source

Fix ISS embed

master
Abheek Dhawan 4 years ago
parent
commit
848b274297
  1. 4
      bot.js

4
bot.js

@ -374,9 +374,7 @@ async function locateISS(message) {
await fetch ("http://api.open-notify.org/astros.json") await fetch ("http://api.open-notify.org/astros.json")
.then(request => request.json()) .then(request => request.json())
.then(data => { .then(data => {
data.people.forEach((astronaut, index) => { issEmbed.addField(`Astronauts`, `${data.people.join(" • ")}`);
issEmbed.addField(`Astronaut ${index + 1}`, astronaut.name, true);
})
message.channel.send(issEmbed); message.channel.send(issEmbed);
}); });
}); });

Loading…
Cancel
Save