Skip to content

mushinbush/discord-bot-gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 中文

Description:

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.

Usage:

Windows

  1. Get your own Gemini API from Google Gemini.
  2. Create your Discord bot and obtain your Discord bot token from the Discord Developer Portal.
  3. Install Python. Make sure to check "Add Python X.X to PATH" during the installation!
  4. Clone this repository to your local machine, or you can simply download it (Code -> Download ZIP).
  5. Run the start.bat file; this will create a virtual environment (venv) and install necessary dependencies.
  6. Enter your Gemini API key and Discord bot token into config.json, then re-run start.bat.
  7. All set!

Configs:

  • 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 configured trigger, the bot will respond. Default is AI,.
    • cleantrig: The trigger word to clear the bot's memory. When a message starts with the configured cleantrig, the bot's current memory will be cleared. Default is cleanAI.

Releases

No releases published

Packages

No packages published