Skip to content

🤖 A bot that plays radio streams directly inside your Discord server.

License

Notifications You must be signed in to change notification settings

poiw-org/discord-radio-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Radio Bot

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


demo


Installation

If you want to use this bot on your own server, you just have to pull this repo and follow the steps bellow.

Create A New Bot User

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.

Configure The Bot

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"
  }
}

Optional: Install The App As System-Service

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.


Librarys Used

I used the following librarys in this project:

About

🤖 A bot that plays radio streams directly inside your Discord server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.2%
  • Dockerfile 2.8%