Skip to content

BLKOFFICIAL/custom-ai-chatbot-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nia - Advanced Discord AI Bot

A powerful Discord bot powered by Google's Generative AI (Gemini) that provides natural conversations, image analysis, and memory management.

Features

  • 🤖 Natural language conversations using Gemini Pro
  • 🖼️ Image analysis and understanding
  • 💭 Long-term memory system
  • 🧠 Contextual conversation history
  • ⌨️ Typing indicators
  • 🎭 Customizable AI personality
  • 📝 Channel-specific responses
  • 📊 User statistics tracking

Setup

  1. Clone this repository

  2. Install dependencies:

    npm install
  3. Create a .env file with your tokens:

    DISCORD_TOKEN=your_discord_bot_token
    GEMINI_API_KEY=your_gemini_api_key
    MONGODB_URI=your_mongodb_connection_string
  4. Configure the bot in config.json:

    • Set aiChannelId to the Discord channel ID where the bot should respond
    • Customize the personality prompt
    • Enable/disable features as needed
  5. Start the bot:

    node index.js

Commands

  • !stats - View your interaction statistics
  • !clear - Clear your data (memories, history, and stats)

Configuration

The config.json file allows you to customize:

  • AI Channel ID
  • Bot personality and behavior
  • Image analysis settings
  • Typing indicator
  • Server context inclusion
  • Security settings

Features in Detail

Memory System

  • Long-term memories for important information
  • Short-term conversation history (last 20 messages)
  • Importance-based memory management

Server Context

  • Server information integration
  • Channel listing (for servers with <70 channels)
  • Member count tracking

User Stats

  • Message count
  • Character count
  • Questions asked
  • Images analyzed

Requirements

  • Node.js 16.9.0 or higher
  • Discord Bot Token
  • Google Generative AI API Key
  • MongoDB Database

Credits

Created by:

License

This project is licensed under the MIT License.

About

Advanced Discord AI bot with Gemini Pro, image analysis, memory, and contextual chat

Topics

Resources

Stars

Watchers

Forks

Contributors