Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 989 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 989 Bytes

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

Getting Started

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.

Deploying

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!