mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-10 10:43:06 +00:00
fix: fixed temp bans not expiring after they're finished after a bot restart
This commit is contained in:
parent
14667ad69f
commit
49d274f2be
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@ import {
|
||||||
setDiscordClient as setRedisDiscordClient,
|
setDiscordClient as setRedisDiscordClient,
|
||||||
} from '@/db/redis.js';
|
} from '@/db/redis.js';
|
||||||
import { setDiscordClient as setDbDiscordClient } from '@/db/db.js';
|
import { setDiscordClient as setDbDiscordClient } from '@/db/db.js';
|
||||||
|
import { loadActiveBans } from '@/util/helpers.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: Events.ClientReady,
|
name: Events.ClientReady,
|
||||||
|
@ -36,6 +37,8 @@ export default {
|
||||||
const nonBotMembers = members.filter((m) => !m.user.bot);
|
const nonBotMembers = members.filter((m) => !m.user.bot);
|
||||||
await setMembers(nonBotMembers);
|
await setMembers(nonBotMembers);
|
||||||
|
|
||||||
|
await loadActiveBans(client, guild);
|
||||||
|
|
||||||
await scheduleFactOfTheDay(client);
|
await scheduleFactOfTheDay(client);
|
||||||
await scheduleGiveaways(client);
|
await scheduleGiveaways(client);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue