✨ Update (v6.0.0)
This commit is contained in:
21
main.js
Normal file
21
main.js
Normal 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);
|
||||
Reference in New Issue
Block a user