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
# 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:
# (Optional) Database URL – if you want PostgreSQL/MySQL # DATABASE_URL=postgres://user:pass@localhost:5432/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
# 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:
# (Optional) Database URL – if you want PostgreSQL/MySQL # DATABASE_URL=postgres://user:pass@localhost:5432/thumperdc