How xhelio/dummydreams-discord-bot works
This repository is primarily a Discord bot for monitoring TikTok Live accounts, announcing live-state changes, verifying users, and administering tracked hosts and bot settings. The main workflow runs through the bot and observer, persists activity and session state, and exposes management and API routes through Flask. The tree also contains a separate React component-preview sandbox and a small Express health API; their relationship to the bot is not shown. Several connections below are limited to SOURCE INDEX references and sampled excerpts.
Main entry points: main.py Bot orchestration · observer.py Live observer · admin.py Admin dashboard · db.py Persistent data
Components 20
Bot runtime
- Bot orchestration
main.py - Chat handling
chatbot.py - User verification
verification.py - Timed tasks
timed_executor.py
Live monitoring
- Live observer
observer.py - Live event parser
tiktoklive_parser.py
Web management
- Flask server
server.py - Admin dashboard
routes/admin.py - Bot API
routes/api.py - Settings panel
routes/settings.py - QA routes
routes/qa.py - Dashboard rendering
styles.py
State and diagnostics
- Persistent data
db.py - Runtime status
runtime_status.py - Logging
log_setup.py
Separate preview services
- Component preview
artifacts/mockup-sandbox/src/App.tsx - Health API app
artifacts/api-server/src/app.ts - API logger
artifacts/api-server/src/lib/logger.ts
Other components
- Discord users
- TikTok Live
Connections 28
- Discord users → Bot orchestration: interacts with
main.py - Bot orchestration → Live observer: starts observer
main.py - Live observer → Live event parser: parses events
observer.py - Live observer → Persistent data: reads and writes
observer.py - Live observer → Runtime status: updates diagnostics
observer.py - Bot orchestration → Chat handling: handles chat
main.py - Bot orchestration → User verification: runs verification
main.py - Bot orchestration → Timed tasks: uses scheduler
main.py - Bot orchestration → Persistent data: reads and writes
main.py - Bot orchestration → Runtime status: updates status
main.py - Bot orchestration → Logging: configures logging
main.py - TikTok Live → Live observer: provides live events
- Flask server → Admin dashboard: registers routes
server.py - Flask server → Bot API: registers routes
server.py - Flask server → Settings panel: registers routes
server.py - Flask server → QA routes: registers routes
server.py - Admin dashboard → Persistent data: reads and writes
routes/admin.py - Admin dashboard → Runtime status: reads status
routes/admin.py - Admin dashboard → User verification: requests verification
routes/admin.py - Admin dashboard → Live observer: reads monitor state
routes/admin.py - Admin dashboard → Dashboard rendering: uses styles
routes/admin.py - Settings panel → Persistent data: reads and writes
routes/settings.py - Settings panel → Dashboard rendering: uses styles
routes/settings.py - Bot API → Persistent data: reads state
routes/api.py - Bot API → Runtime status: reads status
routes/api.py - Bot API → Live observer: dispatches announcement
routes/api.py - Component preview → Discord users: serves workspace previews
- Health API app → API logger: configures request logging
artifacts/api-server/src/app.ts