This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
legacy-musicbot/main.js
2022-06-26 19:40:23 +02:00

22 lines
512 B
JavaScript

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(process.env.DISCORD_TOKEN);