Installation Guide
This guide will help you set up TuneZ on your own server. Choose the method that best suits you.
📋 Prerequisites
Before installing TuneZ, make sure you have:
- Discord Bot Token - Create a bot at Discord Developer Portal
- Python 3.10+ (if using uv)
- Docker and Docker Compose (if using Docker)
- FFmpeg (usually included with Windows exe and Docker)
🚀 Installation Methods
Method One: Windows (.exe) ⭐ Recommended for beginners
The easiest way to get started on Windows.
Steps:
-
Download the latest version
Go to Releases and download the
.exefile. -
Run the installer
Double-click
windows.exeto run it. It will place necessary resources in the directory for the next step. -
Configure the bot
Navigate to the Roaming directory:
C:\Users\YourUsername\AppData\Roaming\TuneZ_Discord_Bot -
Edit the
.envfileOpen
.envwith any text editor and add your Discord Bot Token:DISCORD_TOKEN=your_bot_token OWNER_ID=your_discord_user_id💡 Tip: You can leave `OWNER_ID` empty. It's only used for the emoji reload command. -
Run the bot again
Double-click
windows.exeagain. You should see the bot start up! -
Test it out
Join a voice channel and use
/playto start playing music!
Or use/helpto get command help!
Method Two: Docker
Recommended for users familiar with Docker.
Steps:
-
Clone the project
git clone https://github.com/NotKeKe/TuneZ-Discord-Bot.git cd TuneZ-Discord-Bot -
Create the
.envfilecp .env.example .env -
Edit the
.envfileDISCORD_TOKEN=your_bot_token OWNER_ID=your_discord_user_id -
Create data directories
mkdir -p data logsdata/- Stores custom playlists, URL cache, etc.logs/- Stores bot logs for debugging
-
Start the bot
docker compose up -d -
View logs (optional)
docker compose logs -f
Method Three: uv (Python)
For developers who prefer to run Python directly.
Prerequisites:
- Python 3.10 or higher
- uv package manager
Installation:
-
Install uv
Using pip:
pip install uvOr using the install script:
# Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" # macOS / Linux curl -LsSf https://astral.sh/uv/install.sh | shOr see the official uv installation guide:
https://docs.astral.sh/uv/getting-started/installation/ -
Clone the project
git clone https://github.com/NotKeKe/TuneZ-Discord-Bot.git cd TuneZ-Discord-Bot -
Create the
.envfilecp .env.example .env -
Edit the
.envfileDISCORD_TOKEN=your_bot_token OWNER_ID=your_discord_user_id -
Sync dependencies
uv sync -
Run the bot
uv run main.py
⚙️ Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
DISCORD_TOKEN |
Yes | Your Discord bot token |
OWNER_ID |
No | Your Discord user ID (for owner-only commands) |
📚 Next Steps
Now that you have TuneZ installed, check out:
- Command List - Learn all available commands
- Custom Playlists - Create your own playlists
- FAQ - Common questions and answers