A Discord bot that runs things on Replicate.
Try it out in #art on the Replicate Discord server: https://discord.gg/replicate
Follow the instructions here to create an application in Discord. You'll want to give it permissions to create messages.
Add your Discord app token and Replicate API key to .env
:
REPLICATE_API_TOKEN=...
DISCORD_TOKEN=...
You'll also need an API key from Replicate.
Then, run the bot like this:
poetry run python bot.py
You can use Fly to deploy the bot to the cloud.
Follow this guide. In short, you'll need to run:
flyctl launch
flyctl deploy
flyctl secrets set REPLICATE_API_TOKEN=... DISCORD_TOKEN=...