mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 02:27:19 +00:00
debug: restore mute expiry logging
This commit is contained in:
parent
c67193c398
commit
d99ddab6de
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ async function broadcastExpiredMute(guildId: string, userId: string, tries = 0):
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log(`[EXPIRING MUTES LOOP] Broadcasting expired mute: ${mute.guild_id}/${mute.user_id}`);
|
console.log(`[EXPIRING MUTES LOOP] Broadcasting expired mute: ${mute.guild_id}/${mute.user_id}`);
|
||||||
if (!hasGuildEventListener(mute.guild_id, "expiredMute")) {
|
if (!hasGuildEventListener(mute.guild_id, "expiredMute")) {
|
||||||
// If there are no listeners registered for the server yet, try again in a bit
|
// If there are no listeners registered for the server yet, try again in a bit
|
||||||
if (tries < MAX_TRIES_PER_SERVER) {
|
if (tries < MAX_TRIES_PER_SERVER) {
|
||||||
|
@ -42,7 +42,7 @@ async function broadcastExpiredMute(guildId: string, userId: string, tries = 0):
|
||||||
}
|
}
|
||||||
|
|
||||||
function broadcastTimeoutMuteToRenew(mute: Mute, tries = 0) {
|
function broadcastTimeoutMuteToRenew(mute: Mute, tries = 0) {
|
||||||
// console.log(`[EXPIRING MUTES LOOP] Broadcasting timeout mute to renew: ${mute.guild_id}/${mute.user_id}`);
|
console.log(`[EXPIRING MUTES LOOP] Broadcasting timeout mute to renew: ${mute.guild_id}/${mute.user_id}`);
|
||||||
if (!hasGuildEventListener(mute.guild_id, "timeoutMuteToRenew")) {
|
if (!hasGuildEventListener(mute.guild_id, "timeoutMuteToRenew")) {
|
||||||
// If there are no listeners registered for the server yet, try again in a bit
|
// If there are no listeners registered for the server yet, try again in a bit
|
||||||
if (tries < MAX_TRIES_PER_SERVER) {
|
if (tries < MAX_TRIES_PER_SERVER) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue