A modern Twitch bot with Spotify, Apex Legends, OBS integrations and web management interface.
- ✅ Core: Auto Twitch connection, reconnection, OAuth, custom commands, SQLite, multi-language
- ✅ Moderation: Banned words, link blocking, spam protection, manual commands, web interface
- ✅ Spotify: Current song display, song requests, auto OAuth refresh
- ✅ Apex Legends: Rank display, multi-platform support, Mozambique API
- ✅ OBS: WebSocket connection, web interface control
- ✅ Fun: Welcome messages, auto thanks, gift subs/raids, dice/flip commands
- ✅ Web Interface: Modern UI, real-time management, secure auth, moderator auth
npm install
npm run setup
- Twitch: https://antiscuff.com/oauth/
- Spotify (optional): Spotify Developer Dashboard
- Apex (optional): mozambiquehe.re
npm start
https://127.0.0.1:3000 (HTTPS) or http://127.0.0.1:3000 (HTTP)
- 🇺🇸 English (default)
- 🇫🇷 French
Configure in .env
: LANGUAGE=en
or LANGUAGE=fr
!dice
- Roll D100!flip
- Heads/tails
!song
- Current song!request <link>
- Add to playlist
!apexrank
- Current rank
!addcom <name> <content>
- Add command!delcom <name>
- Delete command!timeout <user> <seconds> [reason]
- Timeout user!ban <user> [reason]
- Ban user!unban <user>
- Unban user
Install mkcert for local HTTPS:
Windows:
choco install mkcert
macOS:
brew install mkcert
Linux:
sudo apt install libnss3-tools
wget -O mkcert https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64
chmod +x mkcert && sudo mv mkcert /usr/local/bin/
Then generate certificates:
mkcert -install
mkcert 127.0.0.1
- Bot won't connect: Check Twitch OAuth token
- Spotify not working: Verify refresh token
- OBS not responding: Check obs-websocket installation
- Database corrupted: Delete
data/bot.db
and restart - HTTPS issues: Reinstall mkcert certificates
src/
├── index.js # Main entry
├── commands/ # All bot commands
├── moderation/ # Moderation system
├── integrations/ # Spotify, Apex, OBS
├── web/ # Web interface
├── config/ # Configuration
├── locales/ # Translations
└── utils/ # Utilities
- Environment variables for tokens
- Permission validation
- SQL injection protection
- Security headers
- CORS configured
- GitHub issues
- Discord
- Recurent messages
- Auto thanks
- Ads management
Happy streaming! 🎮🎧