Pizza Radio is a Discord bot that brings music to your server, with features designed to play, manage, and skip tracks effortlessly. It's lightweight, easy to set up, and customizable for your needs.
- Play Songs: Queue and play songs directly from a folder in your project.
- Playlist Management: List available songs to choose from.
- Skip Tracks: Skip to the next song in the queue.
- Stop Playback: Stop the current song, with an option to disconnect the bot.
- Mixtape Mode: Shuffle and play a mix of songs.
- Persistent Voice Channel Connection: Bot can remain in the voice channel even after stopping playback.
Follow these steps to set up Pizza Radio:
-
Clone the Repository:
git clone https://github.com/vincentskele/pizza-radio.git cd pizza-radio
-
Install Dependencies:
npm install
-
Configure Environment Variables: Copy the example `.env` file and update it with your Discord bot token and other configurations:
cp .env.example .env```
-
Start the Bot:
npm start
src/
: Contains the bot's code and commands.commands/
: Modular commands like play, stop, skip, and mixtape.state.js/
: Shared state management for the bot.
songs/
: Folder to store your audio files (not included in the repo).scratch-pad/
: Utility scripts for deployment and debugging.
/play <song>
: Play a specific song from the playlist./playlist
: List all available songs./skip
: Skip the current song./stop
: Stop the music (optionally keeps the bot in the channel)./mixtape
: Play songs randomly from the collection./band
: Manage and play band-related songs.
Contributions are welcome! Feel free to fork the repository, submit pull requests, or open issues for bug reports and feature suggestions.
- Ensure you have the correct permissions in your Discord server to allow the bot to join voice channels and play music.
- The
songs/
folder must contain valid audio files (`.mp3`, `.wav`, etc.) for the bot to play.
Happy listening! 🎧