This repository contains a Python script for a simple chatbot powered by Google's Gemini large language model, integrated with Discord.
- Clone or download this repository;
- Install the required dependencies:
pip install google-generativeai,pip install discord.py; - Rename
config.template.pytoconfig.py - In
config.py, paste in "GOOGLE_API_KEY" your Gemini API key; - In
config.py, paste in "TOKEN" your Discord bot token; - Run the script
main.pyto start the chatbot; - If you want to give custom instructions to Gemini, modify the
charactervariable incharacter.py.
This is a basic implementation, and further customization can be done to enhance the chatbot's capabilities and user experience.