v3.3.0-metars #14
12
functions.js
12
functions.js
@ -408,12 +408,12 @@ const functions = {
|
|||||||
.setDescription(`**Not for real world use!**\n\n${metarData.rawOb}`)
|
.setDescription(`**Not for real world use!**\n\n${metarData.rawOb}`)
|
||||||
.setFooter({ text: "METAR by AviationWeather.gov for CumbHub LLC" })
|
.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`, inline: true },
|
||||||
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`},
|
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`, inline: true },
|
||||||
{ name: 'Winds', value: `${metarData.wdir.toString().padStart(3, '0')}º@${metarData.wspd}${wgst} kts`},
|
{ name: 'Winds', value: `${metarData.wdir.toString().padStart(3, '0')}º@${metarData.wspd}${wgst} kts`, inline: true },
|
||||||
{ name: 'Visibility', value: `${metarData.visib} SM` },
|
{ name: 'Visibility', value: `${metarData.visib} SM`, inline: true },
|
||||||
{ name: 'Clouds', value: clouds.join('\n') },
|
{ name: 'Clouds', value: clouds.join('\n'), inline: true },
|
||||||
{ name: 'Altimeter', value: `${altim} inHg` }
|
{ name: 'Altimeter', value: `${altim} inHg`, inline: true }
|
||||||
)
|
)
|
||||||
return { embeds: [embed] };
|
return { embeds: [embed] };
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user