Latest Version: 1.6.0 | Status: Active Development π
Last Updated: 2026-04-12 | Node.js: 18+ | discord.js: 13.17.1
(EN) Arcadius is an advanced Discord bot powered by Google Gemini AI, designed to animate and manage the Arcadia server with intelligent conversations, persistent memory, dynamic server integration, and intelligent help detection with LLM-based keyword matching.
(FR) Arcadius est un bot Discord avancΓ© propulsΓ© par l'IA Google Gemini, conΓ§u pour animer et gΓ©rer le serveur Arcadia avec des conversations intelligentes, une mΓ©moire persistante, une intΓ©gration dynamique du serveur et une dΓ©tection d'aide intelligente avec correspondance de mots-clΓ©s basΓ©e sur LLM.
- π€ AI Chat (Gemini 3.1 Flash Lite / Gemma 3): Context-aware conversations with intelligent failover between models.
- πΎ Memory System: Advanced memory management for user interactions and personalized responses.
- π Server Integration: Integration with server data (mods, links, status, server list).
- π¨ Help Detection: Intelligent help detection system with LLM integration for command recognition and customizable responses.
- π Keyword Detection: Advanced keyword matching system with LLM analysis for improved accuracy and coverage.
- π Robust Failover: Automatic switching between multiple API keys and models to ensure reliability (Multi-key support with pool management).
- π Advanced Logging: Comprehensive logging system with color-coded output and file persistence.
- β‘ Performance Optimized: Built with Node.js for high performance and low latency responses.
- π‘οΈ Rate Limiting: Smart rate limiting for message handling to prevent spam and abuse.
- π Multi-Provider Support: Support for multiple LLM providers through unified pool management.
- Node.js 18+ and pnpm (or npm)
- Discord Bot Token from Discord Developer Portal
- Google Gemini API Key(s) from Google AI Studio
(EN)
- Clone the repository:
git clone <repository-url> && cd Bot-Arcadius-JS - Install dependencies:
pnpm install(ornpm install) - Create a
.envfile (see Configuration section below) - Run the bot:
pnpm start(ornpm start)
(FR)
- Clonez le dΓ©pΓ΄t :
git clone <repository-url> && cd Bot-Arcadius-JS - Installez les dΓ©pendances :
pnpm install(ounpm install) - CrΓ©ez un fichier
.env(voir la section Configuration ci-dessous) - Lancez le bot :
pnpm start(ounpm start)
# Discord Bot Configuration
DISCORD_TOKEN=your_discord_bot_token_here
ARCADIUS_CHANNEL_ID=1367176787867471883
# Main Gemini API Keys (with fallback support)
GEMINI_API_KEY=your_gemini_api_key_here
GEMINI_API_KEY_2=your_second_gemini_api_key_optional
GEMINI_API_KEY_3=your_third_gemini_api_key_optional
# Memory Pool (dedicated key for memory operations)
GEMINI_API_KEY_MEMORY=your_memory_gemini_api_key_here
# LLM Providers for Help Detection (optional, uses main keys if not set)
GROQ_API_KEY=optional_groq_api_key
OPENROUTER_API_KEY=optional_openrouter_api_key
# Logging Configuration
LOG_LEVEL=infoThe bot automatically tries available models in this priority order:
- gemini-3.1-flash-lite (Recommended) - Fast & efficient for conversations
- gemini-3.1-flash
- gemini-pro
- gemma-3-27b-it
- gemma-3-12b-it
- gemma-3-4b-it
- gemma-3-2b-it
- gemma-3-1b-it
- Uses Gemini by default
- Falls back to Groq or OpenRouter if configured
- Automatically selects best available model based on detection criteria
Bot-Arcadius-JS/
βββ main.js # Main bot entry point
βββ INDEX.js # Test entry point
βββ check-help-detection-setup.js # Verify help detection configuration
βββ test-llm-connection.js # Test LLM provider connectivity
βββ package.json
βββ modules/
β βββ arcadiusConfig.js # Configuration manager
β βββ arcadiusMessageHandler.js # Message handling & routing
β βββ arcadiusReadyHandler.js # Bot ready event handler
β βββ commandsHandler.js # Command processing & dispatch
β βββ dataManager.js # Data persistence & management
β βββ geminiPool.js # Gemini API client pool with multi-key failover
β βββ llmProviderPool.js # Multi-provider LLM pool management
β βββ generationService.js # Content generation with intelligent failover
β βββ helpDetectionHandler.js # Help request detection & processing
β βββ keywordHandler.js # Keyword matching & detection with LLM
β βββ InteractionHandler.js # Discord interaction handling
β βββ logger.js # Advanced logging system (color-coded)
β βββ memoryService.js # User memory management & recall
β βββ promptBuilder.js # Dynamic prompt generation
β βββ readyHandler.js # Startup initialization
β βββ serverStatus.js # Server status monitoring
βββ docs/ # Comprehensive documentation
β βββ INSTALLATION_GUIDE.md # Detailed setup instructions
β βββ HELP_DETECTION_README.md # Help detection quickstart
β βββ HELP_DETECTION_GUIDE.md # Help detection usage guide
β βββ HELP_DETECTION_TECHNICAL.md # Technical details
β βββ ARCADIUS_ARCHITECTURE.md # System architecture overview
β βββ ADVANCED_USE_CASES.md # Advanced usage scenarios
β βββ SYSTEM_SUMMARY.md # System capabilities summary
βββ data/ # Data storage
β βββ keywords.json # Keyword definitions & responses
β βββ links.json # Server links
β βββ mods.json # Server mods database
β βββ responses.json # Bot response templates
β βββ server_info.json # Server information
β βββ prompt_config.json # Prompt configurations
βββ CHANGELOG.md # Version history
Automatically detects when users ask for help and routes them appropriately with LLM-based analysis for context understanding.
Uses LLM analysis to recognize user intents beyond simple keyword matching, enabling more accurate and contextual responses.
Dedicated API key pool for memory operations, ensuring reliability of user profiling and persistent interactions.
Supports multiple LLM providers with automatic failover, allowing flexibility in API key usage and provider selection.
- Node.js 18+ (tested with latest LTS)
- pnpm 10.32.0+ (or npm 8+)
- discord.js 13.17.1 (included in dependencies)
- @google/generative-ai 0.24.1+ (for Gemini API access)
For detailed information, refer to the following guides in the docs/ folder:
- Help Detection Setup - β START HERE - Complete setup and examples
- Installation Guide - Complete setup walkthrough
- Help Detection README - Quick start for help detection
- Help Detection Implementation - How it works on Discord
- Architecture Overview - System design and flow
- Advanced Use Cases - Complex scenarios and customization
- vyrriox - Creator & Lead Developer
- NotFound - Contributor
See CHANGELOG.md for detailed version history and release notes.