fix: fixed temp bans not expiring after they're finished after a bot restart

This commit is contained in:
Ahmad 2025-04-16 20:04:43 -04:00
parent 14667ad69f
commit 49d274f2be
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF

View file

@ -11,6 +11,7 @@ import {
setDiscordClient as setRedisDiscordClient,
} from '@/db/redis.js';
import { setDiscordClient as setDbDiscordClient } from '@/db/db.js';
import { loadActiveBans } from '@/util/helpers.js';
export default {
name: Events.ClientReady,
@ -36,6 +37,8 @@ export default {
const nonBotMembers = members.filter((m) => !m.user.bot);
await setMembers(nonBotMembers);
await loadActiveBans(client, guild);
await scheduleFactOfTheDay(client);
await scheduleGiveaways(client);