Plays radio streams directly inside your Discord server.
This bot has no commands, its for playing radio streams only.
You can specify your own radio stream in the config.
Important: The provided url MUST be a link to a DIRECT MEDIA STREAM. This means https://radioXYZ.fm is not a valid url!
Stream urls normaly look like https://play.radioXYZ.fm/source.mp3
If you want to use this bot on your own server, you just have to pull this repo and follow the steps bellow.
First you need to create a new bot account.
Head over to the Discord Developer Portal, create a new bot instance and get the bot token.
You will find a configuration file (config.json
) in the root of the repository.
In there, you will have to make some changes:
{
"radio": {
"stream": "YOUR_RADIO_URL",
"volume": 10
},
"discord": {
"token": "YOUR_BOT_TOKEN",
"channel": "YOUR_CHANNEL_ID"
}
}
If you want to start the bot on system startup automatically, you can use the following command.
To learn more, head over to forever-service.
sudo npm i forever forever-service -g
sudo forever-service install discord-radio-bot --script src/Main.js
This will install a system-service, with the name 'discord-radio-bot', that will run the bot.
You can remove the service using sudo forever-service delete discord-radio-bot
.
I used the following librarys in this project: