Currently the documentation here pertains to the canary tag of Dressed (dressed@1.10.0-canary.5.x
), keep in mind that some items (especially talked about in the deployment guides) are not available / work slightly differently in the @latest
version.
Deploying to Deno Deploy
This guide walks you through deploying a Discord bot built with Dressed to Deno Deploy.
Deploying is the last step in building your bot, it will be where Discord can send interactions and events even when you're not developing it.
Configuration
To get Dressed working, all you need to do is:
- Add
deno -A npm:dressed build -i
to the build command - Set
.dressed/index.js
as the entrypoint
Environment variables
If you are creating a new project, you will need to upload your environment variables to be used by the bot. To add your env vars, go to your project settings and click the edit button in the Environment Variables
section.
If you are using @dressed/react, Deno will fail to install it, this can be fixed by changing the install command to use a different package manager, e.g. Bun or pnpm
Upload
You now can upload it to Deno Deploy however you like, either through linking to GitHub, or using the CLI:
deno run -A jsr:@deno/deployctl deploy
Your bot should now be accessible at <project>.<user>.deno.net
.