LanDiscordScrapy/main.js

18 lines
390 B
JavaScript
Raw Normal View History

2022-03-04 14:26:14 +01:00
const { Client, Intents } = require('discord.js');
global.client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_VOICE_STATES
],
disableMentions: 'everyone',
});
client.config = require('./config');
require('./src/loader');
client.login(client.config.app.token);