This is a fork of InvokeAI's fork of Stable Diffusion. It adds a simple Discord bot so that you can send prompts via Discord and receive images back.
This is self hosted, so it's not using any third party APIs that you'll have to pay credits for, but that means it'll only run after you've set it up and are running the program.
The plan is to turn this into a playable game on Discord, but for now it's just a bot that receives prompts and returns the images. As I have time, I'll add more features.
- Set up a bot on Discord and add it to your server. Here are instructions.
- Follow the installation steps on InvokeAI's fork of Stable Diffusion. This article also does a good job running through the process.
- Instead of activating the environment as
conda activate ldm, useconda activate sd_discord_bot - Create a file named "bot_token.py" in the main directory. In it, create a variable and put your bot's token in like this:
bot_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXX' - Enter
python sd_discord.pyinto your Anaconda/Miniconda terminal. It should look like this:
- Enter a prompt on your Discord Server using
$promptfollowed by the prompt. Example:
This is a work in progress (and also my first Discord Bot), but I was too excited not to share it before it was finished. If you have any comments, concerns, suggestions, or bugs that you notice, feel free to reach out to me on Discord (MadManMcIvor#9198)