How devanshkansagra/github-bot works
Main Components
a) Client Layer:
• Discord Server/Client
• GitHub Repository/API
b) Application Layer:
• Discord Bot Core (index.js)
• Command Handler System
• Webhook Handler System
c) Data Layer:
• MongoDB Database
• Authentication Tokens Storage
Flow Connections
• Discord Server ↔ Bot Core (Command Processing)
• Bot Core ↔ GitHub API (Repository Data Fetching)
• Bot Core ↔ MongoDB (Data Storage)
• GitHub Webhooks → Webhook Handler → Discord Server (Notifications)
Component Details
• auth.js
• track.js
• commits.js
• issues.js
• pulls.js
• untrack.js
• createIssue.js
• Webhook Functions
• Token Schema
• User Schema
Technical Stack Indicators
• Node.js Runtime
• Discord.js Library
• GitHub REST API
• MongoDB Database
• Webhook Handlers
Authentication → Token Storage → Database
Remember to indicate the asynchronous nature of the webhook handling and the persistent database connections. This will help developers understand both the static architecture and the dynamic behavior of the system.