fix(not really): catch working hours errors

This commit is contained in:
Isaac 2025-02-12 21:14:59 +00:00
parent 04ada3c07b
commit bb31242d6b
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -732,6 +732,7 @@ module.exports = class TicketManager {
});
}
try {
const workingHours = category.guild.workingHours;
const timezone = workingHours[0];
workingHours.shift(); // remove timezone
@ -774,7 +775,6 @@ module.exports = class TicketManager {
});
}
if (working && process.env.PUBLIC_BOT !== 'true') {
let online = 0;
for (const [, member] of channel.members) {
@ -793,6 +793,9 @@ module.exports = class TicketManager {
this.client.keyv.set(`offline/${channel.id}`, Date.now(), ms('1h'));
}
}
} catch (error) {
this.client.log.error(error);
}
}
/**