Prerequisites
Project Stardust requires Python 3.8 or higher and a PostgreSQL database (we recommend Supabase).
- Python 3.8+ installed
- A Discord bot token
- A PostgreSQL database URL (Supabase recommended)
- Git installed
Quick setup
Install dependencies
Install all required Python packages:This installs:
discord.py- Discord bot frameworkasyncpg- PostgreSQL async driveraiohttp- HTTP client for AniList APIPillow- Image generationpython-dotenv- Environment variable management
Configure environment variables
Create a Getting a Discord bot token:
.env file in the root directory with your credentials:- Go to the Discord Developer Portal
- Create a new application
- Go to the “Bot” section and click “Add Bot”
- Copy the token and paste it into your
.envfile
- Create a free account at Supabase
- Create a new project
- Go to Settings → Database and copy the connection string
- Use the “Session” mode connection string for the free tier
Troubleshooting
Bot won't start - Discord token error
Bot won't start - Discord token error
Make sure your
DISCORD_TOKEN in the .env file is correct and has no extra spaces. The token should start with something like MTAx...Database connection failed
Database connection failed
- Verify your
DATABASE_URLis correct - For Supabase free tier, use the “Session” mode connection string, not “Transaction” mode
- Check that your database allows connections from your IP address
- The connection pool is configured for max 3 connections to work with Supabase’s limits
Cogs failed to load
Cogs failed to load
- Make sure you’re running Python 3.8 or higher
- Verify all dependencies from
requirements.txtare installed - Check the error message for specific missing modules
AniList API errors
AniList API errors
The bot uses the public AniList GraphQL API. If you see API errors:
- Check your internet connection
- The API might be temporarily down (rare)
- Rate limits are handled automatically by the caching system
Next steps
Detailed setup
Learn about advanced configuration options and hosting
Core systems
Understand how the gacha, battles, and progression work
Command reference
Explore all available commands and their usage
Technical docs
Dive into the bot’s architecture and skills system