Skip to content

Instagram bot to generate images using stablediffusion

Notifications You must be signed in to change notification settings

Krizsan0596/InstaDiffusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstaDiffusion

Instagram bot to generate images using stable-diffusion.

It uses the api of AUTOMATIC1111's webui.

Installation

The stable diffusion repo git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui

Go to the repo and follow the setup instructions. Here is a video if that's your thing.

After that's set up. Open webui-user.bat and add the following line: set COMMANDLINE_ARGS=--api.

Clone this repo: git clone https://github.com/Krizsan0596/InstaDiffusion

Install dependencies using poetry

pip install poetry
poetry install

create a LOGIN.txt file next to main.py with the following format:

bot_username
bot_password

You should create a sepparate account for the bot as it might get banned.

Run the .bat file and wait for it to give you a link. In main.py change the url variable to match that link. (You most likely won't need to change it, it is set to the default value.)

In users_setup.py add your main instagram account's user_id to the admin list, you can add the rest with commands. Run users_setup.py.

Run main.py. If you get Listening for messages... in your console, it's working. Test it with a message.

Commands

Currently commands included:

?usage - Prints usage instructions.

?priority add/remove - Adds or removes users from the priority list.

?block - Blocks user. (Can't actually block them so just adds them to an 'ignore list'.)

?unblock - Unblocks user.

?admin - Adds user to admin list.

Commands to be added:

?help - Prints available commands.

About

Instagram bot to generate images using stablediffusion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages