CarlBot is a discord bot used for interacting with the Vladmandic's Stable Diffusion Web UI fork and oobabooga's text-generation-webui.
CarlBot expects at least Python 3.10.9 or higher.
Copy the .env.sample to .env and populate it with the requirered values.
Use the package manager pip to install the deps.
python -m venv venv
.\venv\Scripts\activate or .\venv\bin\activate
pip install -r requirements.txt
python main.py
python3 main.py
You can use the docker-compose:
docker compose up
or alternatively pull the prebuilt container:
docker pull ghcr.io/rwf93/carlbot:master
docker --env-file .env run ghcr.io/rwf93/carlbot:master
Note: for passing in endpoints to either Stable Diffusion or oobabooga, use 172.17.0.1 if using docker or 10.88.0.1 if using podman.
This is because the host machine isn't accessed by using the local loopback address as that is reserved for referencing the container.
Profit?
SallyBot - DeSinc's sally bot, my main inspiration for the bot
Sally.py - whois-hoeless' port of SallyBot, little bits of prompting used in cogs/carl.py