How prosofproest/ipdc-bot works
IPDC is a Discord community-management bot. Members enter through Code-of-Conduct acceptance and an application; staff or PMs review requests, after which the bot assigns roles and provisions team workspaces. PMs configure monitored repositories, while GitHub activity, support tickets, admin controls, and scheduled emailed reports provide ongoing operations. The graph includes core routing, authorization, persistence, and reconciliation layers. Several feature implementations were not excerpted, so their documented capabilities are represented without speculative internal call chains.
Main entry points: router.js Interaction router · admin.js Admin panel · monitoring.js Activity monitoring · pm.js PM control panel
Components 30
Member workflows
- Onboarding
src/features/onboarding.js - Applications and requests
src/features/requests.js - Support tickets
src/features/support.js
Staff operations
- Admin panel
src/features/admin.js - PM control panel
src/features/pm.js - Panel setup
src/features/panels.js - Workspace provisioning
src/core/workspace.js - Structure reconciliation
src/core/reconcile.js - Dynamic roles
src/core/dynamicRoles.js
GitHub and reporting
- GitHub identity linking
src/features/github.js - Activity monitoring
src/github/monitoring.js - GitHub client
src/github/client.js - Activity data
src/github/activity.js - PDF reports
src/github/reports.js
Discord platform core
- Interaction router
src/core/router.js - Authorization
src/core/auth.js
Persistence and services
- Domain state
src/core/state.js - Firestore store
src/storage/firestore.js - Durable queue
src/core/queue.js - Scheduler
src/scheduler.js - AI failover
src/services/ai.js - SMTP mailer
src/services/mailer.js - GitHub webhook
src/webhook.js
Other components
- Discord members
- IPDC GRID staff
- Discord
- GitHub
- SMTP provider
- Cloud Firestore
- Gemini and Groq
Connections 31
- Discord members → Onboarding: starts verification
README.md - Onboarding → Applications and requests: submits application
README.md - Applications and requests → Admin panel: routes PM applications
README.md - Applications and requests → PM control panel: routes member approvals
README.md - Discord members → Support tickets: opens tickets
README.md - IPDC GRID staff → Admin panel: manages community
README.md - Admin panel → Structure reconciliation: repairs structure
src/features/admin.js - Admin panel → Workspace provisioning: provisions PM workspace
README.md - Workspace provisioning → Dynamic roles: provisions team roles
src/core/workspace.js - PM control panel → GitHub client: validates repository
src/features/pm.js - PM control panel → Activity monitoring: requests refresh
src/features/pm.js - GitHub identity linking → GitHub client: links identity
README.md - Activity monitoring → GitHub client: fetches activity
src/github/monitoring.js - Activity monitoring → Activity data: uses contribution data
src/github/monitoring.js - Activity monitoring → PDF reports: supports daily reports
README.md - PDF reports → SMTP provider: emails PDF reports
README.md - GitHub → GitHub webhook: sends event
README.md - GitHub webhook → Activity monitoring: triggers refresh
README.md - Discord → Interaction router: delivers interactions
README.md - Interaction router → Onboarding: dispatches handlers
src/features/onboarding.js - Interaction router → Applications and requests: dispatches handlers
src/features/requests.js - Interaction router → Support tickets: dispatches handlers
src/features/support.js - Interaction router → Admin panel: dispatches handlers
src/features/admin.js - Interaction router → PM control panel: dispatches handlers
src/features/pm.js - Admin panel → Authorization: checks access
src/features/admin.js - PM control panel → Authorization: checks access
src/features/pm.js - Domain state → Firestore store: persists state
- Firestore store → Cloud Firestore: reads and writes
README.md - Onboarding → Durable queue: schedules channel cleanup
README.md - Scheduler → Activity monitoring: runs scheduled refreshes
- AI failover → Gemini and Groq: falls back on error
README.md