Compare commits
No commits in common. "bd275403e9f2278e6c81be333e2ef45d9656374e" and "4bb679cef8afa7993a9fe6636b381cce9da59efe" have entirely different histories.
bd275403e9
...
4bb679cef8
|
@ -91,4 +91,6 @@
|
|||
"zsechat@conference.weather.im",
|
||||
"zdcchat@conference.weather.im",
|
||||
"znychat@conference.weather.im"
|
||||
|
||||
|
||||
]
|
|
@ -1522,9 +1522,6 @@
|
|||
"REP": {
|
||||
"text": "RECCO Observations (tropical cyclone)",
|
||||
"priority": 3
|
||||
},
|
||||
"PIR": {
|
||||
"text": "Pilot Reports",
|
||||
"priority": 1
|
||||
}
|
||||
|
||||
}
|
||||
|
|
10
index.js
10
index.js
|
@ -360,16 +360,6 @@ 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