Diffusion Bot

Discord AI Image Generation Bot | 2022

Discord bot for AI image generation powered by local Stable Diffusion

Diffusion Bot

Overview

Built in late 2022, when Stable Diffusion was becoming publicly accessible and workflows around it were still largely undefined. Diffusion Bot connects a local SD instance to Discord, allowing server members to generate and manipulate images directly in chat without any configuration.

The bot supports text-to-image, image-to-image with ControlNet LineArt, multiple model switching, customisable parameters and batch generation of 4-image grids. Currently inactive but public on GitHub.

Key Features

  • Text-to-image generation with /imagine command
  • Image-to-image transformation with ControlNet LineArt
  • Model management - switch between different SD models
  • Customizable aspect ratio, steps, and CFG scale
  • Negative prompt management with /negative command
  • Resolution settings with /resolution command

Tech Stack

Backend

  • Python 3.8+
  • Discord.py
  • Stable Diffusion WebUI API

Ai

  • Stable Diffusion
  • ControlNet

Tools

  • Pillow
  • aiohttp
  • Requests

Screenshots

Imagine command in action
Imagine command in action