Compare commits
2 commits
4bb679cef8
...
bd275403e9
Author | SHA1 | Date | |
---|---|---|---|
|
bd275403e9 | ||
|
9b80f79436 |
|
@ -91,6 +91,4 @@
|
|||
"zsechat@conference.weather.im",
|
||||
"zdcchat@conference.weather.im",
|
||||
"znychat@conference.weather.im"
|
||||
|
||||
|
||||
]
|
|
@ -1522,6 +1522,9 @@
|
|||
"REP": {
|
||||
"text": "RECCO Observations (tropical cyclone)",
|
||||
"priority": 3
|
||||
},
|
||||
"PIR": {
|
||||
"text": "Pilot Reports",
|
||||
"priority": 1
|
||||
}
|
||||
|
||||
}
|
||||
|
|
10
index.js
10
index.js
|
@ -360,6 +360,16 @@ xmpp.on("stanza", (stanza) => {
|
|||
evt = { name: "Unknown", priority: 3 }
|
||||
console.log(`${colors.red("[ERROR]")} Unknown event type: ${product_id.pil.substring(0, 3)}. Fix me`);
|
||||
console.log(`${colors.magenta("[DEBUG]")} ${bodyData.string}`)
|
||||
const logChannel = discord.guilds.cache.get(config.discord.mainGuild).channels.cache.get(config.discord.logChannel);
|
||||
logChannel.send({
|
||||
embeds: [
|
||||
{
|
||||
title: "Unknown Event Type",
|
||||
description: `Unknown event type: ${product_id.pil.substring(0, 3)}. Please check the logs for more details.`,
|
||||
color: 0xff0000
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
evt.code = product_id.pil.substring(0, 3);
|
||||
|
|
Loading…
Reference in a new issue