How duke-store/mikasa works
This is a Discord community bot centered on developer applications, project review, and a marketplace, with supporting tickets, moderation/protection, ratings, giveaways, and server utilities. The principal workflow collects an application through interactive questions, scans and evaluates it, then supports staff review and project follow-up. The graph also shows marketplace listing and purchase, plus shared persistence and selected community features. Source excerpts and the SOURCE INDEX establish the main application links; several command and event implementations were not sampled, so their internal relationships are omitted.
Main entry points: index.js Discord interaction router · apply.js Application handler · db.js Database access · marketplace.js Marketplace service
Components 24
Applications and review
- Application handler
handlers/apply.js - Question sessions
questionFlow.js - Application system
applySystem.js - Portfolio scanner
portfolioScanner/index.js - Detection keywords
portfolioScanner/utils/keywordSets.js - AI project evaluator
aiAgents/projectEvaluator.js - Review timer
adminReviewTimer.js - Admin review
commands/admin/review.js - Project ticket flows
projectTicket.js
Project marketplace
- Marketplace commands
commands/marketplace/list.js - Marketplace service
marketplace/marketplace.js - Marketplace presentation
marketplace/templates/marketplaceEmbed.js
Community operations
- Ticket handler
handlers/ticket.js - Protection events
protectionEvents.js - Giveaway system
giveaway.js - Rating AI responses
ratingSystem/aiHandler.js - Rating server context
ratingSystem/serverContext.js
Bot and persistence
- Discord interaction router
index.js - Database access
db.js - Guild state and utilities
utils.js - Bot configuration
config.js - Health and admin server
server.js
Other components
- Discord user
- AI provider APIs
Connections 26
- Discord user → Discord interaction router: submits interactions
index.js - Discord interaction router → Application handler: routes application flow
index.js - Discord interaction router → Project ticket flows: routes buyer flow
index.js - Discord interaction router → Ticket handler: routes ticket flow
index.js - Discord interaction router → Rating AI responses: handles DM chat
index.js - Application handler → Question sessions: uses question sessions
handlers/apply.js - Application handler → Portfolio scanner: scans submissions
- Application handler → AI project evaluator: requests evaluation
handlers/apply.js - Application handler → Review timer: schedules review
handlers/apply.js - Admin review → Review timer: manages review timer
commands/admin/review.js - Application handler → Database access: loads and saves projects
handlers/apply.js - Portfolio scanner → Detection keywords: uses detection terms
portfolioScanner/index.js - AI project evaluator → AI provider APIs: requests AI evaluation
- Marketplace commands → Marketplace service: lists products
commands/marketplace/list.js - Marketplace commands → Marketplace presentation: renders listings
commands/marketplace/list.js - Marketplace service → AI project evaluator: checks originality
marketplace/marketplace.js - Marketplace service → Guild state and utilities: writes marketplace data
marketplace/marketplace.js - Project ticket flows → Question sessions: uses question sessions
projectTicket.js - Project ticket flows → Marketplace service: uses marketplace service
projectTicket.js - Protection events → Database access: reads protection settings
- Giveaway system → Guild state and utilities: uses shared utilities
giveaway.js - Rating AI responses → Rating server context: loads server context
ratingSystem/aiHandler.js - Database access → Guild state and utilities: uses guild settings
db.js - Discord interaction router → Database access: uses persistence
index.js - Discord interaction router → Bot configuration: uses bot configuration
index.js - Health and admin server → Database access: reports guild count