Skip to content

This is a Discord bot that utilizes the Gemini API to generate responses and images based on user input. The bot can engage in conversations, answer questions, and create images on the fly.

Notifications You must be signed in to change notification settings

BamaCharanChhandogi/Discord-Gemini-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Gemini-Bot

This is a Discord bot that utilizes the Gemini API to generate responses and images based on user input. The bot can engage in conversations, answer questions, and create images on the fly.

Features

  • Conversation: The bot can engage in natural conversations by understanding user input and providing relevant responses using the Gemini API.
  • Question Answering: Users can ask the bot questions on various topics, and it will provide accurate answers by leveraging the Gemini API's knowledge base.
  • Image Generation: The bot can generate images based on user prompts using the Gemini API's image generation capabilities.

Prerequisites

Before running the bot, make sure you have the following:

Installation

  1. Clone the repository:
git clone https://github.com/your-username/discord-gemini-bot.git
  1. Navigate to the project directory:
cd discord-gemini-bot
  1. Install the required dependencies:
npm i @google/generative-ai discord.js dotenv
  1. Create a .env file in the project directory and add your Discord bot token and Gemini API key
DISCORD_BOT_TOKEN=your-discord-bot-token
GEMINI_API_KEY=your-gemini-api-key

Usage

To run the bot, execute the following command:

npm start

The bot will start running and listening for commands in the Discord server it has been added to.

Commands

  • !chat <question>: Ask the bot a question, and it will provide an answer using the Gemini API.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

This is a Discord bot that utilizes the Gemini API to generate responses and images based on user input. The bot can engage in conversations, answer questions, and create images on the fly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages