Implement persistance for limboMode boolean
This commit is contained in:
+4
-2
@@ -1,15 +1,17 @@
|
||||
import { Client, Events, GatewayIntentBits } from 'discord.js';
|
||||
import RoleService from './services/role';
|
||||
import CommandService from './services/command';
|
||||
import DataService from './services/data';
|
||||
|
||||
const client = new Client({
|
||||
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent]
|
||||
});
|
||||
|
||||
client.once(Events.ClientReady, async (readyClient) => {
|
||||
// Initialize & validate
|
||||
// Initialize services
|
||||
await DataService.init();
|
||||
await CommandService.init();
|
||||
RoleService.validate(client.guilds.cache);
|
||||
await RoleService.init(client.guilds.cache);
|
||||
|
||||
// Ready!
|
||||
console.log(`Ready! Logged in as ${readyClient.user.tag}`);
|
||||
|
||||
Reference in New Issue
Block a user