This repo is outdated and no longer maintained. Please use https://github.com/discordeno/serverless-deno-deploy-template
As this is currently, not finalized please expect breaking changes. A much better in depth guide will come in the near future.
- Install Deno https://deno.land
- Install ngrok https://ngrok.com
- Follow instructions to get ngrok running https://dashboard.ngrok.com/get-started/setup
- Go to discord.dev login and open the bot dashboard
- Get your public key and paste it a configs.ts file. There is an
configs.example.ts
file you can rename. - INVITE YOUR BOT USING THE
applications.commands
scope first before you do the next step. deno run -A -q mod.ts
- Type
/ping
in your server to test. - Enjoy!
Deploy your code to any serverless platform.
Please help contribute as much as possible by sending pull requests. Thank you!