play song name discord bot code example

Example 1: discord.js bot

//first you must install dicord.js by running the command: npm install discord.js
//once u do that copy and paste this into your main file
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () =>{
	client.user.setStatus('your status')
	console.log('Connected!')
})
//rest of your code

//always remember to never share your token with anyone
client.login('your-token-here')

Example 2: discord.js music

//type npm install discord-misic-system --save
//type npm install discord.js --save
//type node .
//see your music bot is ready :] enjoy I LOVE MY INDIA


const MusicBot = require("discord-music-system"); // Require the module
 
const bot = new MusicBot({ // Create the bot
    token: ("type you bot token here"), // You can find the token at https://discord.com/developers/applications/
    ytApiKey: ("Your Youtube api here"), // Video to explain how to get it: https://www.youtube.com/watch?v=VqML5F8hcRQ
    prefix: 'in$', // Example: /
    game: 'sanikava `in$`' // Example: /help
});
 
bot.run(); // Run the bot