-
Register a discord bot
-
export BOT_TOKEN to your bot's token
-
Enable all Privileged Gateway Intents in discord
-
Install https://github.com/AUTOMATIC1111/stable-diffusion-webui
-
Enable API by editing
webui-user.bat
to includeset COMMANDLINE_ARGS=--xformers --autolaunch --listen --api
-
Start server
- Run bot with
go run main.go -t $BOT_TOKEN
- Send command !img followed by a prompt for the txt2img AI
Example: !img a sunny winter day in colorado