From b1d1de530eac42541972135222a36256acaed9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Tue, 1 Oct 2024 18:55:38 +0200 Subject: [PATCH 1/2] Update FcmListener.js --- src/util/FcmListener.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/FcmListener.js b/src/util/FcmListener.js index cdaab1b22..96e176476 100644 --- a/src/util/FcmListener.js +++ b/src/util/FcmListener.js @@ -91,7 +91,7 @@ module.exports = async (client, guild) => { const body = JSON.parse(bodyCheck.value); - if (!body.type) { + if (!body.type && channelId !== 'alarm') { client.log('FCM Host', `GuildID: ${guild.id}, SteamID: ${hoster}, body type could not be found.`) return; } @@ -540,4 +540,4 @@ async function teamLogin(client, guild, title, message, body) { // } // // await DiscordMessages.sendMessage(guild.id, content, null, instance.channelId.activity); -//} \ No newline at end of file +//} From 7d2637e0aad15b7d7ff4bc4b90a8b2e4cdd33154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Tue, 1 Oct 2024 18:55:52 +0200 Subject: [PATCH 2/2] Update FcmListenerLite.js --- src/util/FcmListenerLite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/FcmListenerLite.js b/src/util/FcmListenerLite.js index 6aec89e1c..676e7568d 100644 --- a/src/util/FcmListenerLite.js +++ b/src/util/FcmListenerLite.js @@ -88,7 +88,7 @@ module.exports = async (client, guild, steamId) => { const body = JSON.parse(bodyCheck.value); - if (!body.type) { + if (!body.type && channelId !== 'alarm') { client.log('FCM LITE', `GuildID: ${guild.id}, SteamID: ${hoster}, body type could not be found.`) return; }