Compare commits
No commits in common. "6700e36907941d418b40e87311830ab38a91cafc" and "5a9b91ade155c9a3f73d8c18bf1b0fe8d1c99885" have entirely different histories.
6700e36907
...
5a9b91ade1
@ -394,20 +394,19 @@ const functions = {
|
|||||||
const altim = interAltim / 100;
|
const altim = interAltim / 100;
|
||||||
metarData.clouds.forEach(cloudLayer => {
|
metarData.clouds.forEach(cloudLayer => {
|
||||||
if (cloudLayer.base !== null) {
|
if (cloudLayer.base !== null) {
|
||||||
clouds.push(`${cloudLayer.cover} @ ${cloudLayer.base}'`);
|
clouds.push(`${cloudLayer.cover} @ ${cloudLayer.base}`);
|
||||||
} else {
|
} else {
|
||||||
clouds.push(`${cloudLayer.cover}`);
|
clouds.push(`${cloudLayer.cover}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setAuthor({ name: `${metarData.name} [${metarData.icaoId}] METAR`, iconURL: "https://aviationweather.gov/img/icons/awc-logo-180.png"})
|
.setAuthor({ name: `${metarData.name} [${metarData.icaoId}] METAR`, iconURL: "https://aviationweather.gov/img/icons/awc-logo-180.png"})
|
||||||
.setImage("https://media.discordapp.net/stickers/1175134632845516821.webp")
|
.setDescription(metarData.rawOb)
|
||||||
.setDescription(`**Not for real world use!**\n\n${metarData.rawOb}`)
|
.setFooter({ text: "METAR by AviationWeather.gov" })
|
||||||
.setFooter({ text: "METAR by AviationWeather.gov for CumbHub LLC" })
|
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: 'Observation Time', value: `${metarData.reportTime}Z` },
|
{ name: 'Observation Time', value: `${metarData.reportTime}Z` },
|
||||||
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`},
|
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`},
|
||||||
{ name: 'Winds', value: `${metarData.wdir}º@${metarData.wspd}${wgst} kts`},
|
{ name: 'Winds', value: `${metarData.wdir}@${metarData.wspd}${wgst} kts`},
|
||||||
{ name: 'Visibility', value: `${metarData.visib} SM` },
|
{ name: 'Visibility', value: `${metarData.visib} SM` },
|
||||||
{ name: 'Clouds', value: clouds.join('\n') },
|
{ name: 'Clouds', value: clouds.join('\n') },
|
||||||
{ name: 'Altimeter', value: `${altim} inHg` }
|
{ name: 'Altimeter', value: `${altim} inHg` }
|
||||||
|
Loading…
Reference in New Issue
Block a user