Skip to content

A Discord bot and library that allows a GPT API + AUTOMATIC1111 stable-diffusion-webui API user to combine items like in the webcomic Homestuck

Notifications You must be signed in to change notification settings

recordcrash/alchemy-bot

Repository files navigation

AlchemyBot: GPT-4 + Stable Diffusion powered Homestuck Alchemy Discord chatbot

What is this?

A Discord bot that allows users to generate text + image of combinations of two items like in the webcomic Homestuck, using LLM and diffusion AI technologies.

How to use

  1. Create a virtual environment and install the requirements:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Create a Discord bot and get its token. See this guide for more information.
  2. Create a .env file from .env.example and fill in the Discord and OpenAI tokens.
  3. If you want image generation, download AUTOMATIC1111's Stable Diffusion UI and keep it up at the default port. You might need to install the RemBG extension, and the models linked in the blog post. If you don't want image generation, you might need to lightly edit the code in alchemy_bot.py.
  4. Run the bot:
python3 bot.py
  1. Invite the bot to your server and launch it with D--> alchemize ITEM1 && ITEM2. alchemize3 uses GPT-3.5 and alchemize4 uses GPT-4.

Learn more in the blog post.

Credits

About

A Discord bot and library that allows a GPT API + AUTOMATIC1111 stable-diffusion-webui API user to combine items like in the webcomic Homestuck

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published