/gemini-dc-bot

A Discord bot with Gemini API.

Primary LanguagePython

Discord Bot with Gemini API

Setup

Clone the Repository

git pull https://github.com/PinJhih/gemini-dc-bot.git
cd gemini-dc-bot

Install Dependencies

pip install -r requirements.txt

Set Environment Variables

  • Create a file named .env
    # for example, use the `touch` command
    touch .env
  • Add your Discord Bot Token and Gemini API Key to the .env file:
    BOT_TOKEN=<Your Discord Bot Token>
    GEMINI_API_KEY=<Your Gemini API Key>
    

Run

Run on Host

python gemini_dc_bot/bot.py

Run on Docker

docker build . gemini-dc-bot
docker run gemini-dc-bot