Prerequisites
- Completed Discord Application Setup
- Operating system: Linux, macOS, or Windows
Download the Binary
Download the latest binary for your platform from the GitHub Releases page.
- Linux
- macOS
- Windows
Download
pwr-bot-linux-x64 (or the appropriate architecture)Download Configuration File
Download the .env-example file from the repository.Save it in the same directory as the binary and rename it to
.env.Configure Environment Variables
Edit the
.env file with your text editor and configure the required variables.At minimum, you must set:DISCORD_TOKEN- Your Discord bot tokenADMIN_ID- Your Discord user ID
Make Binary Executable (Linux/macOS)
This step is only required on Linux and macOS systems.
pwr-bot with the actual filename you downloaded.Directory Structure
By default, pwr-bot creates the following directories:You can customize the paths for data and logs directories using the
DATA_PATH and LOGS_PATH environment variables.Managing the Bot
Troubleshooting
Permission Denied Error (Linux/macOS)
Permission Denied Error (Linux/macOS)
Make sure you’ve made the binary executable:
Database Locked Error
Database Locked Error
Ensure only one instance of pwr-bot is running at a time. SQLite does not support multiple concurrent write connections.
Bot Not Connecting to Discord
Bot Not Connecting to Discord
Verify your
DISCORD_TOKEN is correct in the .env file and that the bot has been invited to your server.Next Steps
After the bot is running:- Check the logs to ensure the bot started successfully
- See the command registration steps in the Quick Start guide
- Start using the bot’s features