Skip to content

rwf93/CarlBot

Repository files navigation

CarlBot

License: MIT

CarlBot is a discord bot used for interacting with the Vladmandic's Stable Diffusion Web UI fork and oobabooga's text-generation-webui.

Installation

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

Windows

python main.py

*NIX

python3 main.py

Docker

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?

Credits

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages