Janus Discord Bot

AI-Powered Discord Bot

Python GPT-4o Gemini Vision Async Processing
  • Privacy controls: optional encrypted in‑memory context cache (opt‑in, 2h TTL); no message content persisted to disk.
  • Multimodal pipeline: GPT‑4o + Gemini Vision with PDF text extraction; supports files up to 50MB.
  • Async processing: aiohttp downloads, Pillow image prep, PyPDF2 parsing; resilient error handling and rate‑limit handling.
  • Language detection: English, Hinglish, and Romanized Hindi with context‑aware prompts.
  • Discord delivery: automatic 2000‑char message splitting; typing indicators and helpful /help, /clear commands.
  • Modes: sarcasm and personality styles; file‑only analysis defaults to GPT when no command provided.
  • Privacy commands: `/privacy`, `/privacy allow`, `/privacy deny`, `/privacy clear` (only consent flags are persisted).
  • Strict mode: anonymizes participant names in prompts to reduce PII exposure.
  • Attachment rules: one attachment per message with automatic type detection (image, PDF, text).
  • Debug mode: optional verbose logging for regular and sarcasm flows to aid troubleshooting.
  • Deploy‑ready: Railway configuration and `.env` driven keys; sensible defaults and quick start.

Project Information

  • Category: AI/ML & Automation
  • Tech Stack: Python, OpenAI API, Google Gemini
  • Project Date: 2024
  • Repository: GitHub
  • Status: Open Source, Production Ready

Feature highlights appear in the slideshow panel. Full details and usage in the README.