diff options
Diffstat (limited to 'bot/src/bot.js')
| -rw-r--r-- | bot/src/bot.js | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/bot/src/bot.js b/bot/src/bot.js index 95871e0..ff03b06 100644 --- a/bot/src/bot.js +++ b/bot/src/bot.js @@ -1,20 +1,7 @@ import { Client, GatewayIntentBits } from 'discord.js'; import 'dotenv/config'; -import { event } from './handlers/event.js'; -import { command } from './handlers/command.js'; -import { apiServer } from './api/server.js'; -import { syncDB } from './utils/sync.js'; -//import { deployCommands } from './util/deploy.js'; - -const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers] }); - -async function init(client) { - await syncDB(); - //deployCommands().then(() => console.log('[>] Deployed commands')); - await apiServer(client); - await event(client).then(() => console.log('[>] Event module loaded')); - await command(client).then(() => console.log('[>] Command module loaded')); -} +import { init } from './init.js'; +const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages] }); init(client); |
