jobeus/cmwgpt
Fully-featured OpenRouter / Runpod AI bot for discord
What's novel
Fully-featured OpenRouter / Runpod AI bot for discord
Code Analysis
8 files read · 3 roundsA Discord bot that responds to mentions with AI-generated replies (via OpenRouter or Gemini), enriches prompts with URL content from YouTube/Twitter/TikTok/Facebook, supports image generation via Runpod, and logs all API interactions to MariaDB with a web-based log viewer.
Strengths
Well-structured service-oriented architecture with clean separation between Discord handling, AI service abstraction (OpenRouter + Gemini + hybrid dispatch), per-channel FIFO queuing, and state management. Error handling is thorough with exponential backoff, soft-error detection, Discord-specific error classification, and graceful shutdown sequences.
Weaknesses
The core AI interaction is primarily API orchestration rather than novel algorithmic work — the value is in the integration layer (URL enrichment, multi-provider routing, per-channel state) rather than deep ML logic. Some code paths show signs of iterative development (e.g., the hybrid prompt is a large inline string, the xcancel link rewriting is hardcoded in the client).
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
296
Contributors
1
Files
176
Active weeks
16
Repository
Language
Python
Stars
2
Forks
1
License
—