Skip to content

aleemrehmtulla/leap-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

train & run dreambooth models within discord 🪄

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published