1//type npm install discord-misic-system --save
2//type npm install discord.js --save
3//type node .
4//see your music bot is ready :] enjoy I LOVE MY INDIA
5
6
7const MusicBot = require("discord-music-system"); // Require the module
8
9const bot = new MusicBot({ // Create the bot
10 token: ("type you bot token here"), // You can find the token at https://discord.com/developers/applications/
11 ytApiKey: ("Your Youtube api here"), // Video to explain how to get it: https://www.youtube.com/watch?v=VqML5F8hcRQ
12 prefix: 'in$', // Example: /
13 game: 'sanikava `in$`' // Example: /help
14});
15
16bot.run(); // Run the bot
17
18
19
1client.on("ready", () => {
2 const channel = client.channels.get("mychannelid");
3 if (!channel) return console.error("The channel does not exist!");
4 channel.join().then(connection => {
5 // Yay, it worked!
6 console.log("Successfully connected.");
7 }).catch(e => {
8 // Oh no, it errored! Let's log it to console :)
9 console.error(e);
10 });
11});
12