A powerful Discord bot powered by Google's Generative AI (Gemini) that provides natural conversations, image analysis, and memory management.
- 🤖 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
-
Clone this repository
-
Install dependencies:
npm install
-
Create a
.envfile with your tokens:DISCORD_TOKEN=your_discord_bot_token GEMINI_API_KEY=your_gemini_api_key MONGODB_URI=your_mongodb_connection_string
-
Configure the bot in
config.json:- Set
aiChannelIdto the Discord channel ID where the bot should respond - Customize the
personalityprompt - Enable/disable features as needed
- Set
-
Start the bot:
node index.js
!stats- View your interaction statistics!clear- Clear your data (memories, history, and stats)
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
- Long-term memories for important information
- Short-term conversation history (last 20 messages)
- Importance-based memory management
- Server information integration
- Channel listing (for servers with <70 channels)
- Member count tracking
- Message count
- Character count
- Questions asked
- Images analyzed
- Node.js 16.9.0 or higher
- Discord Bot Token
- Google Generative AI API Key
- MongoDB Database
Created by:
- YouTube: team_blk_official
- Discord: adithyadev.blk
- GitHub: BLKOFFICIAL
This project is licensed under the MIT License.