How kikysena13/dc works
This is a Discord community bot with two runtime variants: the root bot and a parallel bot under l/. The main workflow is a member issuing a Discord command, the bot dispatching it to a command handler, and the handler replying in Discord or updating community data. Major branches include music playback, arena announcements, spending/profile management, and the HTTP dashboard. Source excerpts show only portions of startup and handlers, so unsampled capabilities are represented at subsystem level and uncertain internal links are omitted.
Main entry points: index.js Main bot · playmusic.js Music commands · whellevi.js Spending commands · input.js Profile inputs
Components 21
Bot runtimes
- Main bot
index.js - Alternate bot
l/index.js - HTTP dashboard
index.js
Community commands
- General commands
commands - AI chat
commands/aiChat.js - Arena and rules
commands/Arenaplay.js - Tasks
commands/tasks.js - Activity and roles
commands/activity.js - Alternate commands
l/commands
Media features
- Music commands
commands/playmusic.js - Playback queue
commands/playmusic.js
Spending and profiles
- Spending commands
commands/whellevi.js - Profile inputs
commands/input.js - Spending records
data/whellevi-points.json
External services
- Gemini API
- GitHub contents API
- Spotify API
- Audio sources
- Discord platform
- Dashboard client
Other components
- Discord member
Connections 21
- Discord member → Main bot: sends commands
index.js - Main bot → General commands: dispatches commands
index.js - Main bot → AI chat: dispatches commands
index.js - Main bot → Arena and rules: dispatches commands
index.js - Main bot → Tasks: dispatches commands
index.js - Main bot → Activity and roles: dispatches commands
index.js - Main bot → Music commands: dispatches commands
index.js - Main bot → Spending commands: dispatches commands
index.js - Main bot → Profile inputs: dispatches commands
index.js - Alternate bot → Alternate commands: dispatches commands
l/index.js - Music commands → Playback queue: manages queue
commands/playmusic.js - Music commands → Spotify API: fetches playlists
commands/playmusic.js - Music commands → Audio sources: streams audio
commands/playmusic.js - AI chat → Gemini API: requests responses
commands/aiChat.js - Spending commands → Spending records: reads and writes
commands/whellevi.js - Profile inputs → Spending records: updates profile data
- Spending commands → GitHub contents API: syncs records
commands/whellevi.js - Profile inputs → GitHub contents API: syncs profile changes
- Dashboard client → HTTP dashboard: requests dashboard
- HTTP dashboard → Discord platform: reads guild data
index.js - Main bot → Discord platform: connects bot
index.js