This Discord bot leverages the power of Google's Generative AI and other tools to interact with users in unique ways, such as generating images based on prompts, replying to messages with insightful comments, and more. Below you'll find all the information you need to get started with using and contributing to the bot.
- Image Generation: Generate images based on prompts using different models like Proteus, SD-XL, Stable-Cascade, and Kandinsky.
- Auto-Response: Optionally set the bot to automatically respond to all messages in a channel.
- Conversation History: Maintains a history of interactions for more context-aware responses.
- File Processing: Ability to process and understand content from images, PDFs, and text files.
- URL Content Fetching: Fetches and understands content from URLs provided in messages.
- Customizable: Users can customize the bot's personality and response behavior.
-
Clone this repository
Start by cloning this repository to your local machine to get the source code.
-
Install dependencies
Navigate to the cloned directory and run the following command to install all necessary packages:
npm install dotenv node-fetch@2.6.1 discord.js @google/generative-ai fs sharp pdf-parse cheerio youtube-transcript axios eventsource
-
Set Up Environment Variables
Create a
.envfile in the root directory and define the following variables:DISCORD_BOT_TOKEN: Your Discord bot token.GOOGLE_API_KEY: Your Google Gemini API key which can be obtained from Google AI Studio.
-
Run the Bot
Start the bot by running
node index.jsor your preferred command, depending on how you've set up your project structure. Ensure thatindex.jsis the entry point where the code provided is located.
- Website: For more information, visit the official website.
- GitHub Repository: Access the source code on GitHub.
- Google Gemini API Key: Obtain your API key here.
Contributions are what make the open-source community such a fantastic place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Created by hihumanzone (also known as Impulse). Check out the GitHub profile for more awesome projects!







