This Discord bot allows you to listen to any radio station from around the world directly in your Discord voice channel. Powered by Docker for easy setup.
- Global Radio Access: Connects to a vast number of online radio streams.
- Slash Commands: Easy-to-use commands for controlling the bot.
- Easy Deployment: Get your bot running quickly with Docker Compose.
Follow these simple steps to get your own Global Radio Discord Bot up and running.
Before you begin, ensure you have the following installed on your system:
- Git: For cloning the repository.
- Docker: Docker Engine and Docker Compose (usually included with Docker Desktop).
Open your terminal or command prompt and clone this repository to your local machine:
git clone https://github.com/helish88/discord_radio_bot.gitChange your current directory to the newly cloned project folder:
cd discord_radio_botThis file will store your Discord bot token securely. It's crucial that this file is NOT committed to your Git repository.
Create a new file named .env in the root directory of the project (the same directory where docker-compose.yml is located).
On Linux/macOS:
touch .envOn Windows (PowerShell):
New-Item -Path ".\.env" -ItemType "File"Open the newly created .env file with a text editor and add the following line:
BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN_HEREImportant: Replace
YOUR_DISCORD_BOT_TOKEN_HEREwith your actual Discord bot token obtained from the Discord Developer Portal. Remember to keep your token confidential!
Once your .env file is set up, you can start the bot using Docker Compose. This command will build the Docker image (if not already built) and run the bot in the background.
sudo docker-compose up --build -dCommand explanation:
sudo: May be required on Linux systems for Docker commands.up: Starts the services defined in docker-compose.yml.--build: Forces Docker to re-build the image(s) before starting, ensuring you have the latest code.-d: Runs the services in "detached" mode, meaning they run in the background, and your terminal will be free.
To stop the bot and remove the running Docker containers, use:
sudo docker-compose downFeel free to fork the repository, make improvements, and submit pull requests.
[SOON ))]