English | 中文
This repository hosts a Discord chat bot that leverages some APIs to run conversational models, features:
- Easy one-click installation, simply download and deploy directly (requires python installed).
- Engages in conversations using natural language processing models through APIs that's currently free!
- Customizable personality, allowing to configure the bot's behavior and features to suit your needs.
- Current support: Google's Gemini, Cohere's Command-R+
- Get your own API keys from Google Gemini or Cohere.
- 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 API key and Discord bot token into
config.json
, then re-runstart.bat
. You can change to your designated model. - All set!
- Almost identical to Windows, just run
start.sh
instead.
- 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
.