- Complete the standard installation and setup first
- Configure your LoRAs using the Lora_editor tool
- Docker and Docker desktop installed on your system
- Visit the Discord Developer Portal
- Create New Application:
- Click "New Application"
- Name your bot
- Navigate to "Bot" tab
- Click "Add Bot"
-
Essential Bot Settings
- Copy Bot Token (keep secure!)
- Enable Required Intents: ✓ Presence Intent ✓ Server Members Intent ✓ Message Content Intent
-
Bot Permissions Setup
- Go to "OAuth2" tab
- Select "bot" under Scopes
- Required Permissions:
✓ Send Messages ✓ Manage Messages ✓ Embed Links ✓ Attach Files ✓ Read Message History ✓ Use Slash Commands
-
Server Integration
- Copy OAuth2 URL
- Open in new tab
- Select target server
-
Create
.env
file in root directory:COMMAND_PREFIX=/
-
Run Setup Tool:
python setup.py # or use Setup.exe
-
Path Configuration
- Browse to ComfyUI models folder
- Example:
C:/Comfyui_windows_portable/ComfyUI/models
-
API Tokens
-
Civitai Token:
- Create account on Civitai
- Profile → Settings → Add API Key
-
Huggingface Token:
- Create account on Huggingface
- Profile → Access Tokens
- Create token with "read access to public gated repos"
-
-
Server Configuration
- Bot Server Address: Usually
127.0.0.1
(try0.0.0.0
orlocalhost
if needed) - ComfyUI Server: Same as bot (use remote IP if on different machine)
- Bot Server Address: Usually
-
Discord Settings
- Server IDs: Right-click server → Copy ID (e.g.,
123456789,987654321,654321987
) - Channel IDs: Right-click channel → Copy ID (e.g.,
123456789,987654321,654321987
) - Multiple IDs: Use comma separation (e.g.,
123456789,987654321
) - BOT_MANAGER_ROLE_ID (optional): For bot administration
- This role is not required for the bot to work. It's an optional configuration that provides an additional
way to grant certain users bot management permissions without giving them full Discord admin rights.
If you don't set it, the bot will still function normally - only Discord administrators will be able to use the administrative commands.
- This role is not required for the bot to work. It's an optional configuration that provides an additional
way to grant certain users bot management permissions without giving them full Discord admin rights.
- Server IDs: Right-click server → Copy ID (e.g.,
-
Model Selection
- Choose checkpoint based on GPU VRAM:
- Support for 6GB to 24GB cards
- Select version matching your VRAM capacity
- Choose checkpoint based on GPU VRAM:
If you prefer building your own executables:
# Install PyInstaller
pip install pyinstaller
# Build Setup Tool
pyinstaller setup.spec --clean --noconfirm
# Build LoRA Editor
pyinstaller LoraEditor.spec --clean --noconfirm
# requires UPX for compression or executeable will be extremely large
- Required files will be automatically moved to their respective folders
- Checkpoint changes: Simply rerun setup tool
- Model changes require bot restart
- Antivirus may flag executables
- Build your own using provided specs
- OS-dependent compilation
-
Initial Build and Start
docker-compose up --build
-
Subsequent Starts After the initial build, you can start the container with:
docker-compose up
If the bot doesn't connect to your ComfyUI instance, you may need to adjust the server address in the Dockerfile:
-
Locate Line 33 in the Dockerfile:
ENV server_address=0.0.0.0
-
Try one of these alternatives:
- Local connection:
127.0.0.1
- Your network IP:
LOCAL NETWORK IP ADDRESS
- ComfyUI host IP (if running on different machine)
- Local connection:
LoRA (Low-Rank Adaptation) models are the secret sauce that brings magic to your image generations! These models can:
- Enhance image quality
- Apply specific artistic styles
- Add unique characteristics to generations
- Transform your prompts into stunning visuals
- Visit Civitai.com/models
- Apply filters:
- Model Type:
LoRA
- Base Model:
Flux.1s
andFlux.1 D
- Model Type:
- Download your chosen models
- Place files in:
comfyui/models/Lora
folder
python lora_editor.py
# or build your own exe using the .spec file and pyinstaller
- 🔗 URL links support for
/lorainfo
command - 🚀 Support for 600+ LoRAs
- 💾 SQLite3 database for persistent storage
- 🎯 Persistent trigger words
- 🤗 Huggingface support
- 🤗 Civitai support
- 🔄 Reset All Loras
- ⚡ Instant LoRA availability
- 📋 Lora arrangement abilities
- Launch the editor:
python lora_editor.py # or build your own exe using the .spec file and pyinstaller
- 🔄 Auto-download LoRAs from URLs
- 🎯 Automatic trigger word population
- ⚖️ Pre-configured weights (default: 1.0) -if lora weight is less than 1, keep it do not change
- 📊 Easy weight customization
- 📋 Flexible list organization
- 🔗 Activate and deactivate loras
If you prefer manual setup, edit datasets/lora.json
:
{
"name": "Your LoRA Name",
"add_prompt": "required_trigger_word",
"file": "MyLoRA.safetensors",
"weight": 1.0,
"url": "https://civitai.com/api/download/models/123456789/MyLoRA.safetensors"
}
-
Weight Management
- Default: 1.0
- Adjust lower for subtle effects
- Test different values for optimal results
-
Organization
- Use descriptive names
- Editing the trigger words may result in loras not working
- URL is auto populated.
- Verify file extensions (.safetensors)
- Confirm trigger words
- Test API connectivity
All environment variables are auto created when setup is ran
- Enable
--listen
on ComfyUI server - Configure port settings (default: 8188)
- Set up SSL if needed (recommended for production)