-
-
Save LingleDev/bead68623f9c6fb486ae169ac1e230af to your computer and use it in GitHub Desktop.
Musicbot Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
token=random-bot-token | |
ytapi_key=random-ytapi-key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config() // Setup the process.env variables | |
const discord = require('discord.js'), // Import Discord.js module | |
bot = new discord.Client() // Create a new bot user | |
global.embed = discord.RichEmbed // Lets us access the RichEmbed object from anywhere | |
bot.on('ready', () => { | |
console.log(`${bot.user.username} is ready for action!`) | |
}) | |
bot.login(process.env.token) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"discord.js": "latest", | |
"ytdl-core": "latest", | |
"snekfetch": "latest", | |
"ffmpeg": "latest", | |
"ffmpeg-binaries": "latest", | |
"opusscript": "latest", | |
"node-opus": "latest" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment