How valorant-draft-circuit/vdc-bot works
This is the Valorant Draft Circuit Discord bot. Players and staff interact through Discord commands, buttons, and events; the repository tree shows broad league operations including queues and match handling, drafts, roster transactions, moderation, and profiles. Queue workers and scheduled expiry workers provide background behavior. The README is only a placeholder, and most implementation files were not sampled, so subsystem relationships beyond the map-veto excerpt are shown as unverified rather than asserted.
Main entry points: commands Slash commands · mapbansManager.js Map veto · queue Queue management · events Discord events
Components 22
Discord interaction
- Slash commands
src/interactions/commands - Button handlers
src/interactions/buttons - Discord events
src/events
Competition operations
- Queue management
src/core/queue - Matchmaker
src/workers/matchmaker - Match lifecycle
src/core/queue/matchLifecycle.js - Map veto
src/interactions/buttons/mapbansManager.js
League administration
- Draft operations
src/interactions/subcommands/draft - Roster transactions
src/interactions/subcommands/transactions - League management
src/interactions/subcommands/league - Moderation
src/interactions/subcommands/mod - Player profiles
src/interactions/commands/profile.js
Runtime services
- Guild configuration
utils/enums/channels.ts - Redis service
src/core/redis.js - Application cache
cache/cache.js - Moderation expiry
src/workers/modExpiry - Sub expiry
src/workers/subExpiry - Metrics and telemetry
src/workers/metrics/index.js
Other components
- Players and staff
- Prisma database
- Discord platform
- Game data API
Connections 21
- Players and staff → Discord platform: use
- Discord platform → Slash commands: delivers commands
- Discord platform → Button handlers: delivers clicks
- Discord platform → Discord events: delivers events
- Slash commands → Queue management: manage queue
- Queue management → Matchmaker: match players
- Matchmaker → Match lifecycle: coordinate matches
- Slash commands → Map veto: manage map veto
- Map veto → Prisma database: query match data
src/interactions/buttons/mapbansManager.js - Map veto → Game data API: fetch map data
src/interactions/buttons/mapbansManager.js - Map veto → Discord platform: send veto updates
src/interactions/buttons/mapbansManager.js - Slash commands → Draft operations: manage drafts
- Slash commands → Roster transactions: manage roster
- Slash commands → League management: manage league
- Slash commands → Moderation: moderate members
- Slash commands → Player profiles: view profiles
- Discord events → Queue management: handle voice changes
- Moderation expiry → Prisma database: reconcile sanctions
- Sub expiry → Prisma database: reconcile subscriptions
- Metrics and telemetry → Redis service: observe runtime
- Guild configuration → Discord platform: configure guild