GithubHelp home page GithubHelp logo

tadasz / leap-discord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aleemrehmtulla/leap-discord

0.0 0.0 0.0 100 KB

train & run dreambooth models within discord ๐Ÿช„

JavaScript 100.00%

leap-discord's Introduction

LeapML Discord Bot

Warning
Warning

The official discord bot for LeapML! This bot allows anyone in your server to interact with their LeapML account, including training models, generating images, and even editing images ๐Ÿ”ฅ

note: the old version is in original branch. the old bot used 1 API key for all users, provided by the admin.

Invite to your server

Contributing & Self Hosting

Basic Setup

  1. Fork this repo & download it
  2. Head to the Discord Developer Portal and create a new application
  3. Go to the bot tab and add a bot, allow it to send messages, and copy the token
  4. Add the token to the .env file following the format in the .envExample file
  5. Create a firebase project with firestore enabled
  6. Go to settings > service accounts and click generate new private key
  7. Add the .json file to the root of the project and rename it to creds.json

Running the bot

  1. Go to the Discord Developer Portal, head to OAuth2 > scopes and check bot and applications.commands and click the link to invite the bot to your server
  2. For both /api and /bot (in prod, we use a digital ocean droplet) a) Run npm install to install the dependencies a) Run npm start to start the bot

Commands

  1. /train - Train a model
  2. /generate - Generate images
  3. /edit - Edit images (coming soon, waiting for api)

Links

leap-discord's People

Contributors

aleemrehmtulla 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.