acrylic-style / gptx-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPTxBot

Running the bot

Pull the image from ghcr.io/acrylic-style/gptx-bot:main, then run it with the environment variables defined in BotConfig.kt

Example docker-compose.yml is as follows:

services:
  bot:
    image: ghcr.io/acrylic-style/gptx-bot:main
    environment:
      TOKEN: discord bot token
      OPENAI_TOKEN: sk-xxx
      ASSISTANT_ID: asst_0KeXvo5Lg9SrPQwt55hMFQcn
      CLOUDFLARE_API_KEY: cloudflare api key (workers kv read/write access)
      CLOUDFLARE_ACCOUNT_ID: cloudflare account id
      CLOUDFLARE_KV_USERS_ID: kv namespace id for users
      CLOUDFLARE_KV_DISCORD_ID: kv namespace id for discord
      CREATE_THREAD: "true"
      GITHUB_ACCESS_TOKEN: github access token
    volumes:
      - ./tool_calls.json:/app/tool_calls.json
      - ./reminds.json:/app/reminds.json

About

License:MIT License


Languages

Language:Kotlin 99.8%Language:Dockerfile 0.2%