{"id":16272073,"url":"https://github.com/sshh12/diffuser-discord-bot","last_synced_at":"2025-03-19T23:31:01.479Z","repository":{"id":162791770,"uuid":"637168642","full_name":"sshh12/diffuser-discord-bot","owner":"sshh12","description":"Run deep-floyd/IF or StableDiffusion XL as a basic discord bot.","archived":false,"fork":false,"pushed_at":"2023-09-28T03:23:10.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T21:41:39.007Z","etag":null,"topics":["deepfloyd","diffusers","discord-bot","modal","stable-diffusion-xl"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sshh12.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":"2023-05-06T18:07:09.000Z","updated_at":"2024-09-07T13:53:12.000Z","dependencies_parsed_at":"2024-10-27T21:39:19.173Z","dependency_job_id":"2dce82b8-dec4-4c30-b412-5b073c517b89","html_url":"https://github.com/sshh12/diffuser-discord-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshh12%2Fdiffuser-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshh12%2Fdiffuser-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshh12%2Fdiffuser-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshh12%2Fdiffuser-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshh12","download_url":"https://codeload.github.com/sshh12/diffuser-discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031033,"owners_count":20386534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["deepfloyd","diffusers","discord-bot","modal","stable-diffusion-xl"],"created_at":"2024-10-10T18:16:00.454Z","updated_at":"2025-03-19T23:31:01.201Z","avatar_url":"https://github.com/sshh12.png","language":"Python","readme":"# Diffuser Discord Bot\n\nThis repository allows you to run [deep-floyd/IF](https://github.com/deep-floyd/IF) or StableDiffusion XL as a basic Discord bot.\n\n![Discord Bot Image](https://user-images.githubusercontent.com/6625384/236647785-fd66ba83-856f-4c18-8313-f4a214f7ade0.png)\n\nUse the **/imagine** command with a prompt like `\"an oil painting of a spiral galaxy\"` to interact with the bot.\n\n## Commands\n\nThe following commands are supported:\n\n- `/imagine prompt: \u003cyour_prompt_here\u003e`\n- `/enhance prompt: \u003cyour_prompt_here\u003e image_url: \u003cimage_url_here\u003e`\n\nBoth prompts support {template} syntax, e.g., `a {photo, painting} of a {dog, cat}` generates 4 different prompts.\n\n## Setup\n\nThis defaults to DeepFloyd.\n\nThe setup instructions are provided below. If you encounter any issues, feel free to create an issue in this repository. For problems specifically related to step 1, it is recommended to seek help on the official [DeepFloyd IF issues page](https://github.com/deep-floyd/IF/issues).\n\n1. Set up DeepFloyd IF at https://github.com/deep-floyd/IF until you can run the `Diffusers` example. This is the most challenging part.\n2. Clone this repository using `git clone https://github.com/sshh12/diffuser-discord-bot`.\n3. Install the required dependencies:\n\n   - Run `pip install -r requirements-bot.txt` to install Discord bot dependencies.\n   - Run `pip install -r requirements-worker.txt` to install model dependencies.\n\n4. Set up a Discord Bot. You can create one [here](https://discord.com/developers/applications/).\n5. Obtain an Imgur API key by creating an app [here](https://api.imgur.com/oauth2/addclient). You can use it anonymously.\n6. Set up the following environment variables:\n\n   ```\n   DISCORD_TOKEN= (your bot's secret token)\n   SYNC_GUILD= (optional guild id of your server)\n   IMGUR_CLIENT_ID= (your Imgur client id)\n   ```\n\n7. Run the bot using `python scripts/run_bot.py`.\n8. Create a bot invite link and invite the bot to your server.\n\n## Setup (with Modal, No local GPU required)\n\nThis defaults to StableDiffusion XL.\n\n1. Clone this repository using `git clone https://github.com/sshh12/diffuser-discord-bot`.\n2. Install the required dependencies:\n\n   - Run `pip install -r requirements-bot.txt` to install Discord bot dependencies.\n\n3. Set up a Discord Bot. You can create one [here](https://discord.com/developers/applications/).\n4. Obtain an Imgur API key by creating an app [here](https://api.imgur.com/oauth2/addclient). You can use it anonymously.\n5. Set up the following environment variables:\n\n   ```\n   DISCORD_TOKEN= (your bot's secret token)\n   SYNC_GUILD= (optional guild id of your server)\n   ```\n\n6. Start the https://modal.com/ app with `modal deploy diffuser_discord.ml_worker.modalapp`\n7. Run the bot using `python scripts/run_bot_with_modal.py`.\n8. Create a bot invite link and invite the bot to your server.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshh12%2Fdiffuser-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshh12%2Fdiffuser-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshh12%2Fdiffuser-discord-bot/lists"}