staff notifications
This commit is contained in:
@@ -16,7 +16,8 @@ const { handleDiscordReply } = require('./handlers/messages');
|
||||
|
||||
// Services & jobs
|
||||
const { sendTicketClosedEmail } = require('./services/gmail');
|
||||
const { checkAutoClose, checkReminders, checkAutoUnclaim } = require('./services/tickets');
|
||||
const { checkAutoClose, checkAutoUnclaim } = require('./services/tickets');
|
||||
const { notifyAllStaffUnclaimed } = require('./services/staffNotifications');
|
||||
const { registerCommands } = require('./commands/register');
|
||||
const bosscordRoutes = require('./routes/bosscord');
|
||||
const { setBot } = require('./api/bosscordClient');
|
||||
@@ -152,11 +153,9 @@ client.once('ready', async () => {
|
||||
console.log('✓ Auto-close enabled: checking every hour');
|
||||
}
|
||||
|
||||
if (CONFIG.REMINDER_ENABLED) {
|
||||
setInterval(() => checkReminders(client), 30 * 60 * 1000);
|
||||
checkReminders(client);
|
||||
console.log('✓ Reminders enabled: checking every 30 minutes');
|
||||
}
|
||||
setInterval(() => notifyAllStaffUnclaimed(client).catch(e => console.error('notifyAllStaffUnclaimed:', e)), 30 * 60 * 1000);
|
||||
notifyAllStaffUnclaimed(client).catch(e => console.error('notifyAllStaffUnclaimed:', e));
|
||||
console.log('✓ Staff unclaimed reminders: checking every 30 minutes');
|
||||
|
||||
if (CONFIG.AUTO_UNCLAIM_ENABLED) {
|
||||
setInterval(() => checkAutoUnclaim(client), 60 * 60 * 1000);
|
||||
|
||||
Reference in New Issue
Block a user