This is a simple example bot made with Discord-http.
If you're using Node, or another non-Deno runtime, I'd recommend using the Node-compatible variant
First, run the development bot:
deno task dev
In order to obtain a public url to use as the interactions endpoint for Discord, you need to forward a port, personally, I use VSCode's public port forward system
If you aren't using VSCode, Cloudflared is a good cli option.
deno run -A npm:cloudflared tunnel --url=localhost:8000
You can try editing your bot by modifying src/commands/greet.ts
.
When you're ready, you can deploy the bot with Deno deploy:
deno task build
deployctl deploy --entrypoint=bot.gen.ts
You can check out the GitHub repository - your feedback and contributions are welcome!