codanaut / radiocord

A radio bot for Discord - Playing all the best tunes from your favorite internet radio stations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RadioCord

A radio for discord voice chats. This bot plays music from internet radio live streams.

Try RadioCord

You can invite RadioCord to your server and try it out! - RadioCord

Getting started

Requirements:

We are using PyCord instead of Discord.py for slash command support.

python3 -m pip install -U "py-cord[voice]"

youtube-dl for the lofi & youtube sections. (this is now disabled by default)

sudo pip install --upgrade youtube_dl

Also requires FFMPEG for the radio module.

Setup

Visit the developer portal and create a bot token and invite link.

Under Bot select all three Privileged Gateway Intents

Under OAuth2 then URL Generator select bot.

Next select the following permissions:

  • Send Message
  • Voice Connect
  • Voice Speak
  • Voice Priority Speaker (optional)

Use the generated link to import your bot into your discord server.

Finally create a new file named token.secret and place the bot token inside that file.

Run the bot python3 radiocord.py

Usage

Once radiocord is running you can use slash commands to launch the available radio stations. You must be connected to a voice channel before launching the bot. Currently it does not leave unless the /leave command is used.

About

A radio bot for Discord - Playing all the best tunes from your favorite internet radio stations

License:GNU Affero General Public License v3.0


Languages

Language:Python 99.3%Language:Dockerfile 0.7%