How nxeiv/main-bot works
The Cottage★ Main Bot is a Discord and Minecraft companion. Its main workflow starts with Discord commands or messages, which index.js routes to community, AI, reminder, summary, and administrative behavior; it also coordinates the Minecraft session and website status bridge. Minecraft connection management and AI request handling are distinct runtime layers. The README documents several integrations and capabilities not visible in the partial excerpts; those links are cited to the README rather than presented as inspected call sites.
Main entry points: index.js Discord bot · minecraft.js Minecraft session · ai.js AI responses · summary.js Channel summaries
Components 19
Discord Community
- Discord bot
index.js - Community tools
index.js - Admin actions
index.js - Channel summaries
summary.js - Reminders
reminders.js
Minecraft SMP
- Minecraft session
minecraft.js - Chat relay
index.js - Player welcomes
index.js
AI and Presentation
- AI responses
ai.js - Known answers
ai.js - Unicode theme
unicode.js
Operations
- Website status API
index.js - Access policy
config.js - Scheduled admin actions
index.js - Error reporting
index.js
Other components
- Community member
- Gemini
- Minecraft server
- Cottage website
Connections 24
- Community member → Discord bot: uses commands
README.md - Discord bot → Community tools: routes requests
README.md - Discord bot → Admin actions: routes commands
README.md - Discord bot → Channel summaries: invokes summaries
README.md - Channel summaries → AI responses: requests summary
summary.js - Channel summaries → Discord bot: reads channel
summary.js - Discord bot → Reminders: manages reminders
index.js - Reminders → Discord bot: delivers reminders
reminders.js - Discord bot → AI responses: requests AI
README.md - AI responses → Known answers: checks locally
ai.js - AI responses → Gemini: sends requests
README.md - AI responses → Unicode theme: themes responses
README.md - Discord bot → Access policy: checks access
README.md - Discord bot → Minecraft session: starts session
index.js - Admin actions → Minecraft session: controls session
README.md - Minecraft session → Minecraft server: connects to
minecraft.js - Minecraft session → Chat relay: relays chat
README.md - Chat relay → Discord bot: sends messages
README.md - Minecraft session → Player welcomes: triggers welcomes
README.md - Discord bot → Website status API: serves status
README.md - Cottage website → Website status API: reads status
README.md - Discord bot → Scheduled admin actions: schedules actions
index.js - Scheduled admin actions → Admin actions: executes actions
index.js - Discord bot → Error reporting: reports failures
index.js