How enkoki/mamon works
Mamon is a learning-oriented Discord bot. Users invoke slash commands through Discord; the bot starts and loads command cogs, which provide help, information, repository details, and moderation actions. Moderation delegates permission-hierarchy checks and response-embed creation to shared utilities, while information commands use uptime tracking. The README documents the command capabilities; runtime dispatch details beyond cog loading are not shown in the excerpts.
Main entry points: main.py Bot Startup · info.py Info Commands · moderation.py Moderation Commands · github.py Repository Command
Components 12
Bot Runtime
- Bot Startup
main.py
Command Features
- Help Commands
cogs/help.py - Repository Command
cogs/github.py - Info Commands
cogs/info.py - Moderation Commands
cogs/moderation.py
Shared Logic
- Uptime Tracker
core/uptime.py - Action Checks
utils/checks.py - Response Embeds
utils/embed.py
Configuration
- Environment Config
config.py - Bot Constants
settings.py
Other components
- Discord User
- Discord Platform
Connections 17
- Discord User → Discord Platform: invokes commands
README.md - Discord Platform → Bot Startup: delivers interactions
- Bot Startup → Environment Config: loads settings
main.py - Bot Startup → Help Commands: loads cog
main.py - Bot Startup → Repository Command: loads cog
main.py - Bot Startup → Info Commands: loads cog
main.py - Bot Startup → Moderation Commands: loads cog
main.py - Help Commands → Bot Constants: reads constants
cogs/help.py - Repository Command → Environment Config: reads config
cogs/github.py - Repository Command → Discord Platform: replies with embed
cogs/github.py - Info Commands → Environment Config: reads config
cogs/info.py - Info Commands → Bot Constants: reads constants
cogs/info.py - Info Commands → Uptime Tracker: gets uptime
cogs/info.py - Info Commands → Discord Platform: replies with embeds
cogs/info.py - Moderation Commands → Action Checks: checks hierarchy
cogs/moderation.py - Moderation Commands → Response Embeds: builds responses
cogs/moderation.py - Moderation Commands → Discord Platform: moderates members
cogs/moderation.py