Visit https://discordapp.com/developers/applications/me and create a new Bot. Then, click "Create a Bot User" to get a user-token, which will be needed later.
git clone https://github.com/Blogshot/audio-bot.git
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
apt-get install ffmpeg
Download the appropriate package from here: https://ffmpeg.org/download.html
If you're a Windows user, you'll have to edit your environment variables.
{
"guildCount": 0
}
module.exports = {
// https://discordapp.com/developers/applications/me
// token
token: "<token>",
status: "Status to display in user list",
prefix: "!",
invokation: "audio",
helpText: "Bot usage:\n```\n"
+ "!audio [options]\n"
+ "\nOptions:\n\n"
+ " -h, --help \tShow this message\n"
+ " -c <channel>\tSpecify voice channel to join\n"
+ " -f <pattern>\tSpecify sound file to play. Wildcard: *\n"
+ " --sounds \tList all available sound files\n"
+ " --leave \tForce-leave the current channel\n\n"
+ "```\n"
+ "If you need assistance or want to share feedback, contact <Owner> or join the support-discord: <Invite-Link>"
};
npm init
and then
npm install discord.js node-opus --save
Rename the MP3s to lowercase with rename 'y/A-Z/a-z/' *
node bot.js
node sharder.js