Generate Images From A Text Prompt Using Various Stable Diffusion Models Right Inside Discord Chat 😀
Only Host The Bot, No Need Self-Host Any Resource Consuming Models 😉
- (4 Images) Stable Diffusion v1.4
- (4 Images) Stable Diffusion v2.1
- (1 Image) Stable Diffusion v1.4
- (1 Image) Stable Diffusion v2.0
- (1 Image) Stable Diffusion v2.1
- (1 Image) Stable Diffusion v2.1 Base
-
/imagine
- Generate Image From Text Promptprompt
- Text Promptnegative_prompt
- Negative Text Prompt
-
/settings
- View or Change Settingsmodel
- Select Default Modelguidance_scale
- Set Default Guidance Scale
-
/ping
- Check Websocket Heartbeat && Roundtrip Latency -
/help
- Show Help Message
You Can Either Use The Dockerized Setup Or Use Non-Dockerized Setup 🙃
- Create A Discord Bot:
Create A Discord Bot From Discord Developer Portal. Keep The Client ID and Bot Token Handy. Add It To Your Server With Sample Invite URL Replacing BOT_CLIENT_ID
With Bot's Client ID
https://discord.com/api/oauth2/authorize?client_id=BOT_CLIENT_ID&permissions=414464724032&scope=applications.commands%20bot
- Clone This Repo:
git clone https://github.com/itskdhere/Stable-Diffusion-Discord-Bot
- Create
.env
File In Root Directory:
cp .env.example .env
- Fill
.env
File With Required Values:
vim .env
- Build:
docker build -t itskdhere/sd:1.1.3 .
- Start:
docker run -d -p 7860:7860 --name sd itskdhere/sd:1.1.3
- Use The Bot 🎉
- Create A Discord Bot:
Create A Discord Bot From Discord Developer Portal. Keep The Client ID and Bot Token Handy. Add It To Your Server With Sample Invite URL Replacing BOT_CLIENT_ID
With Bot's Client ID
https://discord.com/api/oauth2/authorize?client_id=BOT_CLIENT_ID&permissions=414464724032&scope=applications.commands%20bot
- Clone This Repo:
git clone https://github.com/itskdhere/Stable-Diffusion-Discord-Bot
- Navigate To The Repo Directory:
cd Stable-Diffusion-Discord-Bot
- Install Dependencies:
npm install
- Create
.env
File In Root Directory:
cp .env.example .env
- Fill
.env
File With Required Variables:
Use Your Favourite GUI Text Editor To Edit The File or If You've No Access To GUI Text Editor, Use Nano:
nano .env
- Start The Bot:
npm run start
Or, If You Want To Run The Bot In Background:
npm install pm2 -g
npm run prod
Learn More About PM2 Here
- Use The Bot 🎉
- 📚 License: MIT
- 💫 Stable Diffusion: stability.ai
- 🤗 HuggingFace: huggingface.co
🙂