How shykrachet/alren-discord works
Alren is a Discord bot whose main workflow routes slash or legacy commands to private chat, osu! account verification, beatmap discovery, or server configuration; scheduled jobs also publish beatmap and community updates. Verification exchanges osu! OAuth data for a linked account and Discord role, while the beatmap and community services produce channel-ready updates. SQLite stores server settings and verification state. The README documents major capabilities that are only partly visible in the sampled source; edges for those documented relationships cite it rather than implying unsampled implementation details.
Main entry points: index.js Bot runtime · osu-verification.js Account verification · osu-maps.js Beatmap discovery · slash-commands.js Slash commands
Components 17
Bot runtime
- Bot runtime
index.js
Discord interactions
- Slash commands
src/slash-commands.js - Legacy commands
src/message-handler.js
osu! services
- Account verification
src/osu-verification.js - Beatmap discovery
src/osu-maps.js
Community alerts
- Community monitoring
src/community-alerts.js - Alerts endpoint
src/community-alerts.js
Shared services
- Private AI chat
src/chat.js - Chat persona
src/persona.js - Mode icons
src/mode-icons.js - Runtime configuration
src/config.js - SQLite storage
src/sqlite-store.js
Other components
- Discord users
- Discord platform
- osu! API
- AI provider
- BN / Guild APIs
Connections 32
- Discord users → Discord platform: issue commands
README.md - Discord platform → Bot runtime: deliver events
index.js - Bot runtime → Slash commands: dispatch interactions
index.js - Bot runtime → Legacy commands: dispatch messages
index.js - Slash commands → Account verification: start verification
src/slash-commands.js - Slash commands → Beatmap discovery: request maps
src/slash-commands.js - Slash commands → Private AI chat: start chat
README.md - Legacy commands → Private AI chat: request replies
src/message-handler.js - Legacy commands → Beatmap discovery: request maps
src/message-handler.js - Legacy commands → Account verification: start verification
README.md - Private AI chat → AI provider: request completion
src/chat.js - Private AI chat → Chat persona: use instructions
src/chat.js - Bot runtime → Private AI chat: initialize service
index.js - Bot runtime → Account verification: initialize service
index.js - Bot runtime → Beatmap discovery: start feed
index.js - Bot runtime → Community monitoring: start polling
index.js - Account verification → osu! API: exchange OAuth
src/osu-verification.js - Account verification → SQLite storage: read and write state
src/osu-verification.js - Account verification → Discord platform: assign role
README.md - Beatmap discovery → osu! API: search beatmaps
src/osu-maps.js - Beatmap discovery → SQLite storage: read settings
src/osu-maps.js - Bot runtime → Discord platform: post map feeds
index.js - Community monitoring → BN / Guild APIs: fetch updates
src/community-alerts.js - Community monitoring → Discord platform: send alerts
- Community monitoring → SQLite storage: load alert settings
- Community monitoring → Alerts endpoint: serve cached data
src/community-alerts.js - Bot runtime → Mode icons: sync icons
index.js - Beatmap discovery → Mode icons: format modes
src/osu-maps.js - Bot runtime → SQLite storage: create database
index.js - Bot runtime → Runtime configuration: load settings
index.js - Slash commands → SQLite storage: configure servers
- Discord users → Alerts endpoint: request status
README.md