English | 中文
This repository hosts a Discord chat bot that leverages the Google's Gemini API to run conversational models, features:
- Easy one-click installation, simply download and deploy directly.
- Engages in conversations using natural language processing models through the gemini API that's currently free!
- Customizable personality, allowing users to configure the bot's behavior and features to suit their needs.
- You can use more powerful models if you have the money.
- Get your own Gemini API from Google Gemini.
- Create your Discord bot and obtain your Discord bot token from the Discord Developer Portal.
- Install Python. Make sure to check "Add Python X.X to PATH" during the installation!
- Clone this repository to your local machine, or you can simply download it (Code -> Download ZIP).
- Run the
start.bat
file; this will create a virtual environment (venv) and install necessary dependencies. - Enter your Gemini API key and Discord bot token into
config.json
, then re-runstart.bat
. - All set!
- You can modify the bot in
config.json
:sysprompt
: System prompt that defines commands, personality, etc...sysfstmsg
: An example message from the bot that can better guide the bot's speaking manner.trigger
: The trigger word for the bot. When a message starts with the configuredtrigger
, the bot will respond. Default isAI,
.cleantrig
: The trigger word to clear the bot's memory. When a message starts with the configuredcleantrig
, the bot's current memory will be cleared. Default iscleanAI
.