MaximKoles / kandinsky-discord-bot

AI artist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  1. First we need to check that Python is installed and have 3.11 version(its important)
python -V

if running this command in command line giver error like "python is not recognized bla bla bla" or it have not 3.11 version we need to install 3.11 version from official website

Right result should be:

python -V
Python 3.11.0
  1. Now lets clone repository with bot by command below, if git isnt installed, install it
git clone https://github.com/MaximKoles/kandinsky-telegram-bot
cd kandinsky-telegram-bot
  1. To install needed modules lets run this command:
pip install -r requirements.txt

5.After all of this actions we need to get our api tokens:

1)First token that we need is Replicate api token, to get it enter Replicate website, Login or Register if you not, then go to your profile page and copy token, save it somewhere

  1. Замените токены
REPLICATE_API_TOKEN=<paste your replicate token here instead of this text and ><>
TELEGRAM_BOT_TOKEN=<paste here your discord bot token instead of this text and ><>
  1. Run bot by command:
python kandinsky.py

wait some minutes after this to sync commands

  1. Enjoy bot!!!!

How to use this command of bot?

image

This bot will have slash command /kandinsky that have options: prompt(required) - text of what should be on picture steps - number of steps in 1-500 scale - scale varioable is float and can be from 1 to 20 Generation time depends on steps and scale value

About

AI artist


Languages

Language:Python 100.0%