Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

luisfun/discord-hono-example

Repository files navigation

⚠️ Migrated: Hello, world Example


🔥 Discord Hono Example

👉 Example Bot

This example runs on Cloudflare Workers.

Fork, Clone, Install

Fork and Clone

cd discord-hono-example
npm i

Setup Discord Bot

Create a New Application from Dashboard.
Copy your APPLICATION ID, PUBLIC KEY and TOKEN, and put them .env file.

Storing secrets.

npx wrangler secret put DISCORD_APPLICATION_ID
npx wrangler secret put DISCORD_PUBLIC_KEY
npx wrangler secret put DISCORD_TOKEN

Register commands and Deploy.

npm run register
npm run deploy

Enter https://YOUER_PROJECT.YOUER_DOMAIN.workers.dev in the INTERACTIONS ENDPOINT URL.

Create an invite URL from Dashboard.
YOUR_APP > OAuth2 tab > OAuth2 URL Generator > Check SCOPES: bot > URL Copy
Paste the URL into the browser.

About

Discord Hono Example

Topics

Resources

License

Stars

Watchers

Forks

Contributors