HitRadio is a Discord bot that plays non-stop Hits from the HitRadio Radio Station. The bot is built using JavaScript and leverages the Discord.js library to deliver a seamless music streaming experience.
- 24/7 Streaming: Continuous Hits from HitRadio.
- High Quality Audio: Uses
sodium-nativefor optimal performance. - Easy Control: Interactive Stop Button 🛑 and slash commands.
- Auto Reconnection: Automatically rejoins if the stream or connection drops.
- Custom Status: Rotates through artist names and updates.
- Node.js v20.0.0 or higher
- npm (Node Package Manager)
- FFmpeg (Required for audio processing)
If running on Linux, you must install build tools for the encryption libraries:
sudo apt-get update
sudo apt-get install -y build-essential python3 libtool automake autoconf ffmpeg-
Clone the repository:
git clone https://github.com/ExceptedPrism3/HitRadio.git cd HitRadio -
Install dependencies:
npm install
-
Create a
.envfile:DISCORD_TOKEN=your_bot_token
-
Configure the bot (Optional): Edit
config.jsonto customize the status messages or radio URL. -
Run the bot:
# For development node hitradio.js # For production (recommended) pm2 start hitradio.js --name hitradio
- /play - 🎶 Start playing the radio in your voice channel.
- /stop - 🛑 Stop the radio and leave the channel.
- /ping - 🏓 Check the bot's latency.
- /uptime - ⏱️ Check how long the bot has been running.
- /info - ℹ️ Get information about the bot.
- /vote - 🗳️ Get voting and invite links.
- /help - ❓ List all available commands.
We welcome contributions! Feel free to fork this project, submit issues, or create pull requests.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit your changes.
- Push to the branch.
- Create a new Pull Request.
This project is licensed under the GNU AGPL v3 License - see the LICENSE file for details.
If you encounter any issues or have questions, feel free to join our Support Discord Server or open an issue on GitHub.
Made with ❤️ by Prism3
