Skip to content

Commit

Permalink
Quickfix Raidalarm (#381)
Browse files Browse the repository at this point in the history
* Update FcmListener.js

* Update FcmListenerLite.js
  • Loading branch information
FaiThiX authored Feb 11, 2025
1 parent ed50284 commit 832158c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/util/FcmListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -540,4 +540,4 @@ async function teamLogin(client, guild, title, message, body) {
// }
//
// await DiscordMessages.sendMessage(guild.id, content, null, instance.channelId.activity);
//}
//}
2 changes: 1 addition & 1 deletion src/util/FcmListenerLite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 832158c

Please sign in to comment.