No description
  • JavaScript 98.9%
  • Dockerfile 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-03-19 08:08:11 -04:00
commands first commit 2025-03-19 08:08:11 -04:00
.dockerignore first commit 2025-03-19 08:08:11 -04:00
.gitignore first commit 2025-03-19 08:08:11 -04:00
config.example.json first commit 2025-03-19 08:08:11 -04:00
deploy-commands.js first commit 2025-03-19 08:08:11 -04:00
docker-compose.yml first commit 2025-03-19 08:08:11 -04:00
Dockerfile first commit 2025-03-19 08:08:11 -04:00
index.js first commit 2025-03-19 08:08:11 -04:00
package.json first commit 2025-03-19 08:08:11 -04:00
README.md first commit 2025-03-19 08:08:11 -04:00

Gemini Search Discord

A Discord bot that uses Google Gemini Flash 2.0 with web search capabilities.

Features

  • Web search using Gemini Flash 2.0 (/search)
  • Image analysis with Gemini Flash 2.0 (/analyze)
  • Help command for information (/help)

Setup

Prerequisites

  • Node.js or Docker
  • Discord Bot Token
  • Paid Google Gemini API Key

Configuration

Create a config.json file in the root directory with the following structure:

{
  "DISCORD_TOKEN": "your_discord_bot_token",
  "DISCORD_CLIENT_ID": "your_discord_client_id",
  "GEMINI_API_KEY": "your_gemini_api_key"
}

Standard Installation

  1. Install dependencies:

    npm install
    
  2. Deploy commands:

    npm run deploy
    
  3. Start the bot:

    npm start
    

Docker Installation

  1. Make sure Docker and Docker Compose are installed on your system

  2. Create your config.json file as described above

  3. Build and start the container:

    docker-compose up -d
    
  4. View logs:

    docker-compose logs -f
    
  5. Stop the bot:

    docker-compose down
    

Available Commands

  • /search [query] - Search the web using Google Gemini
  • /analyze [image] [prompt] - Analyze an uploaded image
  • /help - Display bot information and available commands