How ninjawarrior1337/hanamaru-go works
Main Components
a. Core Framework Layer:
• Custom framework component (framework/) as the foundation
• Voice handling subsystem (framework/voice/)
• Database integration (framework/db.go)
b. Command Modules (organize into functional groups):
• Audio/Visual Commands (commands/av/)
• Fun Commands (commands/fun/)
• Information Commands (commands/info/)
• Japanese Language Features (commands/jp/)
• Music Commands (commands/music/)
• Debug Commands (commands/debug/)
c. Utility Services Layer (util/):
• External API Integrations (Anilist, Exchange Rates, PlayerDB)
• Media Processing (Audio/Video utilities)
• Japanese Language Processing
• LaTeX Rendering
• Translation Services
d. Database Layer:
• PostgreSQL database (indicated by migrations/)
• Data models for awards and tags
e. External Services Integration:
• Discord API Connection
• YouTube Integration (for music playback)
• Various API Services (Jisho, AniList, etc.)
[External Services Layer]
• ↕
[Discord API Interface]
• ↕
[Core Framework Layer] ←→ [Database Layer]
• ↕
[Command Modules] ←→ [Utility Services Layer]
Important Relationships
• How the framework handles command routing
• Voice system's connection to YouTube
• Demonstrate database interactions for persistent storage
• How utility services support command modules
Technical Details
• Go as the primary language
• Required external dependencies (youtube-dl)
• Configuration management
• Embedded resources (assets/)
Implementation Notes
• Version information
• Build tags (jp, ij) as conditional features