Discord.js bot for supporting a playlist-style Discord guild
Running:
- Checkout repository
- Install ffmpeg, the library for audio streaming
- Create a Discord bot and invite it to your radio Discord server.
- Give bot the appropriate read permissions into radio channels and read/write and pin permissions in your bot channel.
- Create a
config.jsonin the root directory of the repository:
{
"token": "<YOUR_BOT_LOGIN_TOKEN>",
"prefix": "!",
"BOT_CLIENT_ID": "<YOUR_BOT_CLIENT_ID>",
"DISCORD_GUILD_NAME": "<YOUR_DISCORD_SERVER_NAME_HERE>",
"BOT_CHANNEL_NAME": "bot",
"TEXT_CHANNEL_BLACKLIST": ["<YOUR>", "<NON>", "<RADIO>", "<CHANNEL>", "<NAMES>", "<HERE>"]
}
- Run
node .
Useful links:
- Discord API docs: https://discord.js.org
- discord.js-commando guide (wrapper for discord.js for writing commands): https://github.com/discordjs/Commando-guide
- ytdl-core (YouTube streaming library) docs: https://github.com/fent/node-ytdl-core