How euno-hq/discord works
Euno is a Discord moderation bot with an accompanying web application. Its main user workflow is Discord activity or moderation commands entering bot handlers, which analyze or resolve the event and apply moderation actions or record reports. The code also includes a web portal, background jobs, analytics, and persistence. The graph emphasizes relationships directly shown in excerpts or the SOURCE INDEX; some documented capabilities have no verified runtime links in the available evidence.
Main entry points: service.ts Spam Detection · server.ts HTTP Server · spamResponseHandler.ts Spam Responses · handlers.ts Escalation Handlers
Components 20
Bot Runtime
- HTTP Server
app/server.ts - Runtime Setup
app/AppRuntime.ts
Moderation
- Bot Commands
app/commands - Escalation Handlers
app/commands/escalate/handlers.ts - Escalation Service
app/commands/escalate/service.ts - Vote Messages
app/commands/escalate/strings.ts - Guild Setup
app/helpers/setupAll.server.ts - Report Logging
app/commands/report/userLog.ts
Spam Detection
- Spam Detection
app/features/spam/service.ts - Spam Analyzers
app/features/spam/contentAnalyzer.ts - Activity Tracker
app/features/spam/recentActivityTracker.ts - Verdict Scoring
app/features/spam/spamScorer.ts - Spam Responses
app/features/spam/spamResponseHandler.ts
Web Portal
- Web Routes
app/routes - Admin Features
app/features/Admin - Stripe Webhooks
app/routes/webhooks.stripe.server.ts
Data and Operations
- Background Jobs
app/jobs/jobRunner.ts - SQLite Database
app/Database.ts - Observability
app/effects/observability.ts
Other components
- Discord
Connections 14
- HTTP Server → Runtime Setup: warms runtime
app/server.ts - Discord → HTTP Server: sends interactions
app/server.ts - HTTP Server → Bot Commands: registers commands
app/server.ts - Escalation Handlers → Escalation Service: resolves actions
app/commands/escalate/handlers.ts - Escalation Handlers → Vote Messages: builds vote UI
app/commands/escalate/handlers.ts - Escalation Service → SQLite Database: reads and writes
app/commands/escalate/service.ts - Spam Detection → Spam Analyzers: runs analysis
app/features/spam/service.ts - Spam Detection → Activity Tracker: tracks activity
app/features/spam/service.ts - Spam Detection → Verdict Scoring: computes verdict
app/features/spam/service.ts - Spam Detection → Spam Responses: executes response
app/features/spam/service.ts - Spam Responses → Report Logging: logs messages
app/features/spam/spamResponseHandler.ts - Spam Responses → SQLite Database: records reports
app/features/spam/spamResponseHandler.ts - Spam Detection → Observability: logs detection
app/features/spam/service.ts - HTTP Server → Observability: logs startup
app/server.ts