Update (v6.0.0)

This commit is contained in:
Zerio
2021-09-23 22:22:33 +02:00
parent 4c2069cdf9
commit 5dcf2affc8
45 changed files with 418 additions and 465 deletions

21
main.js Normal file
View File

@@ -0,0 +1,21 @@
const { Player } = require('discord-player');
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');
global.player = new Player(client, client.config.opt.discordPlayer);
require('./src/loader');
require('./src/events');
client.login(client.config.app.token);