Discord Bot For StableDiffusion and NovelAI
- Generate images with StableDiffusion
- Generate images with NovelAI
- Generate images form elemental code prompt
- Generate images form message link
- Reaction to remove generated images
sd prompt -u [negative_prompt] -s [steps] -c [scale] -w [width] -h [height] -b [batch_size] -t(translate prompt) -q(add quality tag)- Generate images with stable-diffusion-webui
- You must run stable-diffusion-webui with
--apioption inCOMMANDLINE_ARGS - quality tag: masterpiece, best quality,
- ❌
nai prompt -u [negative_prompt] -m [model]- Generate images with NovelAI
- model: 0=Curated, 1=Full
- Currently not working
ele- Generate images form elemental code prompt
link [message link]- Generate images form message link
locale [locale]- Set locale
locale- Show current locale
locales- Show available locales
help- Show help
Create .env file referring to example.env.
If you do not use NovelAI, you do not need to enter your NovelAI email address and password.
Create config.yml file referring to example_config.yml.
If you do not use NovelAI, set USE_NOVELAI to False.
If you want to use google translate, set USE_GOOGLE_TRANS to True in config.yml and set GOOGLE_APPLICATION_CREDENTIALS to your API key file in .env.
then
git clone --recursive [email protected]:k0tayan/NovelAI-SD-DiscordBot.git
poetry install
poetry run python main.py