How sumyka/chillcamp works
ChillCamp is a Discord bot for user-configurable notifications and temporary voice channels. Users start with a channel button, submit a modal to create a voice channel, and the bot can notify opted-in users; voice-state events also handle AFK and delayed channel deletion. Slash commands manage notification preferences, stored in SQLite. The graph preserves the command-deployment capability, but its invocation is not shown. Relationships are limited to calls and event wiring visible in excerpts or the source index; several feature internals were not sampled.
Main entry points: index.ts Bot entrypoint · interactionCreate.ts Interaction router · informDB.ts Notification store · buttonInteractions.ts Button handler
Components 19
Bot runtime
- Bot entrypoint
src/index.ts - Logging
src/utils/logger.ts - Bot activity
src/Initialize/setActivity.ts - Command deployment
src/Initialize/deployCommand.ts
User interactions
- Interaction router
src/handlers/interactionCreate.ts - Button handler
src/handlers/buttonInteractions.ts - Modal handler
src/handlers/modalInteractions.ts - Command handler
src/handlers/commandInteractions.ts
Voice channels
- Voice creation form
src/features/vc/createVCEmbed.ts - Voice creation modal
src/features/vc/createVCModal.ts - Create voice channel
src/features/vc/createVC.ts - Notify opted-in users
src/features/vc/sendInformMessage.ts - AFK handling
src/features/vc/AFK.ts - Delayed channel deletion
src/features/vc/deleteVC.ts - Delete old message
src/utils/deleteMessage.ts
Notification preferences
- Set notifications
src/commands/common/setInform.ts - Notification store
src/features/db/informDB.ts
Other components
- Discord user
- Discord platform
Connections 20
- Bot entrypoint → Logging: sets up
src/index.ts - Bot entrypoint → Bot activity: sets activity
src/index.ts - Bot entrypoint → Voice creation form: posts form
src/index.ts - Bot entrypoint → Interaction router: dispatches interactions
src/index.ts - Bot entrypoint → AFK handling: handles voice events
src/index.ts - Bot entrypoint → Delayed channel deletion: handles voice events
src/index.ts - Bot entrypoint → Notification store: deletes departed user
src/index.ts - Discord user → Discord platform: interacts
- Discord platform → Interaction router: delivers interactions
- Interaction router → Button handler: routes buttons
src/handlers/interactionCreate.ts - Interaction router → Modal handler: routes modals
src/handlers/interactionCreate.ts - Interaction router → Command handler: routes commands
src/handlers/interactionCreate.ts - Button handler → Voice creation modal: opens modal
src/handlers/buttonInteractions.ts - Modal handler → Create voice channel: submits creation
src/handlers/modalInteractions.ts - Command handler → Set notifications: dispatches setting
src/handlers/commandInteractions.ts - Set notifications → Notification store: saves preference
src/commands/common/setInform.ts - Create voice channel → Notify opted-in users: requests notification
src/features/vc/createVC.ts - Notify opted-in users → Notification store: reads recipients
src/features/vc/sendInformMessage.ts - Voice creation form → Delete old message: clears prior form
src/features/vc/createVCEmbed.ts - Command deployment → Discord platform: registers commands