WIP: v3.4.0 #25
@ -10,6 +10,10 @@ module.exports = {
|
||||
// Also checks for validity of ICAOs
|
||||
const icaoList = fn.avWx.parseICAOs(commandData);
|
||||
const metarData = await fn.avWx.metar.getData(icaoList);
|
||||
if (metarData.length === 0) {
|
||||
message.reply('No METAR data found for the provided ICAOs.');
|
||||
return;
|
||||
}
|
||||
const messages = fn.avWx.metar.parseData(metarData);
|
||||
messages.forEach(messagePayload => {
|
||||
message.reply(messagePayload);
|
||||
|
Loading…
Reference in New Issue
Block a user