{"id":24396145,"url":"https://github.com/datacte/scalable-comfyui-bot","last_synced_at":"2026-02-12T19:31:36.860Z","repository":{"id":272174909,"uuid":"915735640","full_name":"DataCTE/scalable-comfyui-bot","owner":"DataCTE","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-12T17:15:55.000Z","size":286984,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T19:45:39.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataCTE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-12T17:05:12.000Z","updated_at":"2025-02-10T19:30:37.000Z","dependencies_parsed_at":"2025-01-12T18:33:55.200Z","dependency_job_id":null,"html_url":"https://github.com/DataCTE/scalable-comfyui-bot","commit_stats":null,"previous_names":["datacte/scalable-comfyui-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DataCTE/scalable-comfyui-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataCTE%2Fscalable-comfyui-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataCTE%2Fscalable-comfyui-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataCTE%2Fscalable-comfyui-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataCTE%2Fscalable-comfyui-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataCTE","download_url":"https://codeload.github.com/DataCTE/scalable-comfyui-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataCTE%2Fscalable-comfyui-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29378818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T19:05:20.189Z","status":"ssl_error","status_checked_at":"2026-02-12T19:01:44.216Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-19T21:25:22.575Z","updated_at":"2026-02-12T19:31:36.845Z","avatar_url":"https://github.com/DataCTE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalable ComfyUI Bot\n\nA distributed Discord bot for AI image generation with integrated credit system and payment processing. Supports load balancing across multiple ComfyUI instances.\n\n\u003e **Attribution**: This project builds upon the excellent foundation of [ComfyUI-SDXL-DiscordBot](https://github.com/aaronfisher-code/ComfyUI-SDXL-DiscordBot) by [Aaron Fisher](https://github.com/aaronfisher-code). The initial framework and ComfyUI integration were inspired by their work.\n\n## Project History\n\nThis bot started as an internal tool for testing SDXL model iterations in a controlled environment. Key aspects of its development:\n\n- **Private Testing**: Enabled testing of SDXL models without distributing weights\n- **Feedback Collection**: Used to gather user feedback on model outputs during training\n- **Multiple Models**: Supported testing different model versions and architectures:\n  - SDXL base models\n  - Fine-tuned variations\n  - Custom architectures (PixArt-900M, AuraFlow, Flux)\n\nThe bot evolved to include features like credit management, multiple model support, and image manipulation capabilities, making it a comprehensive platform for AI image generation testing.\n\n\u003e **Note**: The `/describe` command is currently under maintenance and may not function as expected.\n\n## Project Structure\n```\nDATAPULSE_BOT/\n├── src/\n│   ├── comfyUI-workflows/      # ComfyUI workflow configurations\n│   │   ├── describe_config.json\n│   │   ├── gen_avatar_config.json\n│   │   ├── img2img_config.json\n│   │   ├── lora2img_config.json\n│   │   ├── pixarttext2img_config.json\n│   │   ├── style2img_config.json\n│   │   ├── text2img_config.json\n│   │   └── ... (other workflow configs)\n│   │\n│   ├── database/              # Database operations\n│   │   ├── database_query_same_energy.py\n│   │   ├── database_query.py\n│   │   └── db.py\n│   │\n│   ├── services/             # Core services\n│   │   ├── apiImageGen.py\n│   │   ├── avatar_cog.py\n│   │   ├── imageGen.py\n│   │   ├── payment_service.py\n│   │   ├── sdxl-comfyui-fastapi.py\n│   │   └── stripe_integration.py\n│   │\n│   ├── utils/               # Utility functions\n│   │   └── config.py\n│   │\n│   └── docs/                # Documentation\n│       ├── LICENSE\n│       └── README.md\n│\n├── config/                  # Configuration files\n│   ├── payment.json\n│   └── config.properties\n│\n├── notebooks/              # Jupyter notebooks\n│   └── host.ipynb\n│\n├── logs/                   # Log files\n│   └── logfile.txt\n│\n├── bot.py                  # Main bot application\n├── requirements.txt        # Python dependencies\n└── run.sh                 # Shell script to run the bot\n```\n\n## Features\n\n1. **AI Image Generation**\n   - Generate images from text prompts using the `/imagine` command\n   - Multiple AI models supported:\n     - stable-diffusion-xl\n     - PixArt-900M\n     - AuraFlow\n     - Flux\n     - Kolors\n   - Style transfer and avatar generation capabilities\n   - Support for negative prompts to refine generation\n\n2. **Image Manipulation**\n   - Upscale generated images for higher quality\n   - Generate variations of existing images\n   - Create image collages automatically\n   - Style transfer between images\n\n3. **Credit System**\n   - Built-in credit management for users\n   - Check balance with `/balance` command\n   - Automatic credit deduction for image operations\n\n4. **Payment Integration**\n   - Seamless Stripe payment integration\n   - Easy credit recharge with `/recharge` command\n   - Secure payment processing and tracking\n\n5. **Additional Features**\n   - Image description capabilities with `/describe` command\n   - Channel-specific command restrictions\n   - User-friendly interactive buttons for image operations\n   - Load balancing across multiple ComfyUI instances\n\n## Setup\n\n### Prerequisites\n- Python 3.x\n- Discord Bot Token\n- Stripe API Key and Product ID\n- Replicate API Token\n- One or more ComfyUI instances\n\n### Configuration\n1. Create `config/config.properties` with the following structure:\n```ini\n[DISCORD]\nTOKEN=your_discord_bot_token\n\n[IMAGE]\nSOURCE=LOCAL\n\n[STRIPE]\nAPI_KEY=your_stripe_api_key\nPRODUCT_ID=your_stripe_product_id\n\n[REPLICATE]\nAPI_TOKEN=your_replicate_api_token\n\n[LOCAL]\nTYPE=cluster\nSERVER_ADDRESS=127.0.0.1:8188\n\n[COMFY_CLUSTER]\n# Comma-separated list of ComfyUI instances\nSERVER_ADDRESSES=127.0.0.1:8188,127.0.0.1:8189,127.0.0.1:8190\n```\n\n2. Set up ComfyUI workflows:\n   - Place your workflow JSON files in `src/comfyUI-workflows/`\n   - Required workflows:\n     - `text2img_config.json`\n     - `img2img_config.json`\n     - `upscale_config.json`\n     - `style2img_config.json`\n     - And others as specified in config.properties\n\n3. Database setup:\n   - The bot automatically creates necessary tables on first run\n   - Database file location: `config/database.sqlite`\n\n### Running the Bot\n1. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n2. Start the bot:\n```bash\n./run.sh\n```\n\n## Usage\n\n### Basic Commands\n- `/imagine [prompt]` - Generate images from text\n- `/balance` - Check your credit balance\n- `/recharge` - Get a payment link to add credits\n- `/describe [image]` - Get AI description of an image\n\n### Image Generation Parameters\n- `prompt` - Main text prompt for generation\n- `negative_prompt` - What to avoid in generation\n- `batch_size` - Number of images (max 4)\n- `width` \u0026 `height` - Image dimensions\n- `model` - AI model to use (stable-diffusion-xl, PixArt-900M, etc.)\n- `cfg` - Configuration scale\n- `steps` - Generation steps\n\n### Clustering Setup\nThe bot supports distributed image generation across multiple ComfyUI instances:\n\n1. Single Instance:\n   ```ini\n   [LOCAL]\n   TYPE=single\n   SERVER_ADDRESS=127.0.0.1:8188\n   ```\n\n2. Multiple Instances:\n   ```ini\n   [LOCAL]\n   TYPE=cluster\n   \n   [COMFY_CLUSTER]\n   SERVER_ADDRESSES=127.0.0.1:8188,127.0.0.1:8189,192.168.1.100:8188\n   ```\n\nThe bot will automatically distribute requests across all configured instances in a round-robin fashion.\n\n## Credits and Payments\n- New users start with initial credits\n- Each operation costs a specific amount of credits\n- Recharge credits through Stripe payment system\n- Secure payment processing and automatic credit allocation\n\n## Security\n- Channel-specific command restrictions\n- DM commands disabled\n- Secure payment processing through Stripe\n- Database tracking of all transactions\n\n## Support\nFor support or feature requests, please open an issue in the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacte%2Fscalable-comfyui-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatacte%2Fscalable-comfyui-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacte%2Fscalable-comfyui-bot/lists"}