A
Cursor logoCursorGenerate images in Discord from a custom pipeline

Discord image-generation bot powered by ComfyUI

setuproll@setuproll
85.0Overall score

A Discord bot that turns /imagine prompts into images by calling a self-hosted ComfyUI workflow over its API, with a queue so a busy server does not overload one GPU. For art communities and teams that want their own model and LoRAs instead of a generic hosted generator.

85.0Score
1.1kVotes
5Components

Install this build

Export
terminal
npx create-discord-bot stackroll-comfyui

Components

Model

  • Flux + ComfyUI workflow

Stack

  • discord.js
  • ComfyUI API
  • BullMQ queue

Tools

  • Discord attachments
  • ComfyUI websocket
  • Redis

Features

  • per-user queue
  • LoRA presets
  • seed and aspect controls

How it works

  • User runs /imagine with a prompt and optional preset
  • Job is enqueued in BullMQ to protect the GPU
  • ComfyUI runs the workflow and streams progress over websocket
  • Finished image posts back to the channel as an attachment

Summary

A Discord bot that turns /imagine prompts into images by calling a self-hosted ComfyUI workflow over its API, with a queue so a busy server does not overload one GPU. For art communities and teams that want their own model and LoRAs instead of a generic hosted generator.

85.0 score 1.1k votes

0 Reviews

Your rating
Sign in to post

Loading discussion...