# Prefix for legacy commands (slash commands don’t need this) PREFIX=!
# Or using Yarn yarn install --frozen-lockfile Create a file called .env in the root folder: thumperdc
logs/ (rotated daily). Look for [ERROR] lines for stack traces. 9️⃣ Updating the Bot git pull origin main npm ci # reinstall any new deps npm run build # if the repo uses TypeScript npm restart # or stop & start manually Tip: Set up a systemd service (Linux) or a PM2 process to auto‑restart on failure. Example systemd unit [Unit] Description=ThumperDC Discord Bot After=network.target # Prefix for legacy commands (slash commands don’t
# In .env DASHBOARD_ENABLED=true DASHBOARD_PORT=8080 Run with npm run dashboard . The dashboard uses Discord OAuth2; you must register a Redirect URI ( https://yourdomain.com/auth/callback ) in the Developer Portal. 7.3 Scaling with Multiple Shards For bots in >2,500 guilds: 9️⃣ Updating the Bot git pull origin main
# Spotify credentials (optional – for Spotify playback) SPOTIFY_CLIENT_ID=... SPOTIFY_CLIENT_SECRET=... If you’re using the default SQLite store, you don’t need DATABASE_URL . 4.4 Run the Bot npm start # or: node src/index.js You should see something like: