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.
- Fork this repo & download it
- Head to the Discord Developer Portal and create a new application
- Go to the bot tab and add a bot, allow it to send messages, and copy the token
- Add the token to the .env file following the format in the .envExample file
- Create a firebase project with firestore enabled
- Go to
settings
>service accounts
and clickgenerate new private key
- Add the .json file to the root of the project and rename it to
creds.json
- Go to the Discord Developer Portal, head to
OAuth2
>scopes
and checkbot
andapplications.commands
and click the link to invite the bot to your server - For both
/api
and/bot
(in prod, we use a digital ocean droplet) a) Runnpm install
to install the dependencies a) Runnpm start
to start the bot
/train
- Train a model/generate
- Generate images/edit
- Edit images (coming soon, waiting for api)