xyter/src/index.js

21 lines
555 B
JavaScript

// Dependencies
const { Client, Intents } = require('discord.js'); // discord.js
const { database } = require('./helpers'); // helpers
const { events, commands, locale } = require('./handlers'); // handlers
const config = require('../config.json'); // config.json
(async () => {
// Initialize discord.js client
const client = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
});
await database();
await locale();
await events(client);
await commands(client);
await client.login(config.bot.token);
})();