Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Iris Discord AI Bot

Discord Node.js JavaScript

Intelligent Discord AI Bot with Multi-Provider Support & Advanced Moderation

πŸš€ Add to Server β€’ πŸ“– Self-Host Guide β€’ βš™οΈ Configuration β€’ 🀝 Contributing

Add to Discord GitHub stars GitHub issues


πŸ“– About

Iris is a powerful Discord AI bot that integrates multiple AI providers (Gemini, OpenAI, Groq) with advanced conversation capabilities, intelligent moderation, and rich media processing.

✨ Key Features

  • 🧠 Multi-AI Provider Support - Seamlessly switch between Gemini, OpenAI, and Groq
  • πŸ›‘οΈ AI-Powered Moderation - Natural language command processing for server management
  • 🌐 URL Context Analysis - Analyze web content directly in conversations
  • πŸ“± Rich Media Processing - Image and video analysis with AI vision
  • πŸ’Ύ Conversation Memory - Persistent chat history with SQLite
  • πŸ”‘ Personal API Keys - Users can set their own API keys for unlimited usage

πŸš€ Quick Start

Prerequisites

  • Node.js 18.0.0 or higher
  • Discord Bot Token
  • AI API Key

Installation

# Clone and install
git clone https://github.com/bm-hien/Iris-Discord-AI.git
cd Iris-Discord-AI
npm install

# Configure environment
cp .env.example .env
# Edit .env with your tokens

# Start the bot
npm start

βš™οΈ Configuration

Edit your .env file:

# Discord (Required)
DISCORD_BOT_TOKEN=your_discord_bot_token
DISCORD_CLIENT_ID=your_bot_client_id

# AI Configuration
DEFAULT_AI_PROVIDER=gemini
DEFAULT_GEMINI_API_KEY=your_gemini_api_key

# Optional: Additional Providers
DEFAULT_OPENAI_API_KEY=your_openai_api_key
DEFAULT_GROQ_API_KEY=your_groq_api_key

πŸ“– Commands

Basic Usage

  • Simply mention the bot or send a message to start chatting
  • Use /apikey set to configure your personal API key
  • Use /model set to switch between AI models
  • Use /clear-history to reset conversation history

Moderation (Natural Language)

  • "Mute @user for spamming"
  • "Clear 10 messages"
  • "Lock this channel"
  • "Ban @user for harassment"

πŸ—οΈ Architecture

AI/
β”œβ”€β”€ ai.js                    # Main AI module
β”œβ”€β”€ functions/               # Core AI processing
β”‚   β”œβ”€β”€ generateResponse.js  # AI response generation
β”‚   β”œβ”€β”€ mediaProcessor.js    # Image/video processing
β”‚   └── functionCalling.js   # Discord function integration
β”œβ”€β”€ commands/                # AI command processing
└── events/                  # Database & system management

🀝 Contributing

We welcome contributions! Please check our issues for ways to help.

πŸ“„ License

This project is licensed under the MIT License - see LICENSE file for details.

πŸ”— Links


Made with ❀️ by Bmhien

Bringing AI-powered intelligence to Discord communities worldwide

β˜• Support the project

About

πŸ€– Intelligent Discord AI Bot with multi-provider support (Gemini, OpenAI) featuring advanced moderation, media processing, URL context analysis, and natural language function calling

Topics

Resources

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages