Giter Club home page Giter Club logo

kandinsky-discord-bot's Introduction

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

kandinsky-discord-bot's People

Contributors

maximkoles avatar zenafey avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.