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.

[Support] FoxxMD - aiyabot

Featured Replies

Application Name: aiyabot

Application Site: https://github.com/Kilvoctu/aiyabot

Github Repo: https://github.com/Kilvoctu/aiyabot

Docker Hub: https://github.com/Kilvoctu/aiyabot/pkgs/container/aiyabot

Template Repo: https://github.com/FoxxMD/unraid-docker-templates

 

Overview

aiyabot is a self-hosted discord bot for interacting with a Stable Diffusion API to create AI generated images.

 

It is compatible with AUTOMATIC1111's Stable Diffusion web UI or SD.Next APIs and provides these features through Discord commands:

  • text2image
  • image2image
  • prompt from image
  • generate prompts from text
  • upscale image
  • image identification (metadata query)

 

Generation settings are also configurable globally or per channel:

  • Model to generate with
  • Width/Height
  • Extra nets (lora, hypernet)
  • Prompt/Negative prompt
  • Batch generation settings
  • highres fix/face restore/VAE
  • strength/guidance(cfg)/clip skip/styles
  • mark as spoiler

 

Be aware that aiyabot will help you craft valid generation commands but it does not magically "make good images" -- the bot will only generate with the settings you specifically configure. You will need a basic understanding of Stable Diffusion in order to achieve good result.

 

image.png.01c00aeed06efc41ba23ad404e1d2cc3.png

 

Requirements

Discord Bot - You need to create a Discord bot in a Server you have appropriate permissions in and have a token ready to use with Aiyabot. This is covered in Setting up a Discord bot in the project wiki.

 

Compatible Stable Diffusion instance - The bot needs access to a SD API. Recommend to use stable-diffusion in CA Apps with (04 SD.Next) or (02 Automatic1111)

Usage

Map the SD container's API port:

* Container Port 7860 -> Host Port 7860

 

Fill in the CA app template with your discord bot token and URL to the SD API

 

image.png.0b0cc18591c29d7edf46c571636fd03f.png

 

and the start the app to get the bot running.

 

All commands and configuration is done through discord slash commands in the server the bot is running on.

 

Generating Prompts

Prompt generation (using /generate command) is disabled by default because it requires downloading and installing an ML model into the container which can be a large download and take a long time to process. If you wish to use this command then modify the CA template variable for USE_GENERATE (Download and install optional prompt generation command) from false to true.

Edited by FoxxMD

  • 8 months later...

Not sure what I'm doing wrong - I set up the bot per instructions on the wiki.  The bot shows on discord that it has no commands, and appears offline.  Other than making sure the bot token is correct I'm not sure what else to do to get it to connect.

  • 4 weeks later...

Does this bot work with ForgeUI run locally?  (A version of A1111) Since A1111 was pretty much abandoned.

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.