Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stable Diffusion discord bot integration with superboki / sygil docker container

Featured Replies

Hello Unraid community,

I've been working on integrating the Stable Diffusion Discord Bot (ausbitbank/stable-diffusion-discord-bot) with the superboki or Sygils container on Unraid, and I've encountered some issues along the way. Despite several attempts to resolve these errors/issues, I've been unsuccessful so far. I've also posted about the issue on the bot's GitHub repo (ausbitbank/stable-diffusion-discord-bot/issues/41).

 

The problem I'm experiencing is that while the Discord bot successfully generates an image upon receiving a prompt, the image doesn't appear in the Discord channel. I can find the generated image in the Invoke Docker container output folder, but the path logic seems to be causing issues. I receive the following error from the Discord bot container:

logs:

 

Quote

Error: ENOENT: no such file or directory, open '/mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/output:/app/output000011.ac064d6c.2916674852.png'] { errno: -2, code: 'ENOENT', syscall: 'open', path: '/mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/output:/app/output000011.ac064d6c.2916674852.png' }

 

I've made adjustments to the .env file and docker-compose.yaml file, as shown below:

.env file:
 

Quote

 

basePath="/mnt/user/SD-Outputs/InvokeAI/03-InvokeAI"

dbPath="${basePath}/db"

outputPath="${basePath}"

 

docker-compose.yaml:

Quote

version: '3'

services:

discord-bot:

build: .

container_name: stable-diffusion-discord-bot

volumes: - /mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/db:/app/db - /mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/output:/app/output

environment: - channelID="xxxxx"

- adminID="xxxxx"

- apiUrl="http://xxxxxxx:9000/"

- discordBotKey="xxxxx"

# ... rest of the environment variables

 

Dockerfile:

Quote

FROM node:14

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

CMD ["npm", "start"]

 

I would greatly appreciate it if someone could help me create a working Docker container for the Stable Diffusion Discord Bot that can be integrated with the superboki or Sygils container on the Unraid CA App Store.

 

Any assistance or guidance would be immensely helpful.

Thank you in advance!

Edited by SimpleDino

Solved by SimpleDino

  • 3 weeks later...
  • Author
  • Solution

SOLVED https://github.com/ausbitbank/stable-diffusion-discord-bot/issues/41

 

Volume mapping in docker-compose.yaml did it:

volumes:

- /mnt/user/appdata/stable-diffusion/outputs/03-InvokeAI:/app/output

- ./db:/app/db

 

and setting basepath in .env:

basePath="/app/output/"

 

Edited by SimpleDino

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.