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-08-30 22:48:05 +02:00

23 lines
572 B
JavaScript

const { Player } = require("discord-player");
const { Client, GatewayIntentBits } = require("discord.js");
global.client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildVoiceStates,
],
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);