diff --git a/src/util/FcmListener.js b/src/util/FcmListener.js index cdaab1b2..96e17647 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 +//} diff --git a/src/util/FcmListenerLite.js b/src/util/FcmListenerLite.js index 6aec89e1..676e7568 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; }