Browse Source

Attempt to map array to names

master
Abheek Dhawan 4 years ago
parent
commit
abef37c97f
  1. 2
      bot.js

2
bot.js

@ -374,7 +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 => {
issEmbed.addField(`Astronauts`, `${data.people.join(" • ")}`); issEmbed.addField(`Astronauts`, `${data.people.map(e => e.name).join(" • ")}`);
message.channel.send(issEmbed); message.channel.send(issEmbed);
}); });
}); });

Loading…
Cancel
Save