Discord Interaction Bot with Cloudflare workers
git clone https://github.com/aatomu/discord-worker.git
: clone repositorynpm install
: install using librarywrangler secret put PUBLIC_KEY
: Input yourBot PublicKey
wrangler secret put TOKEN
: Input yourBot Token
export TOKEN=**** APPLICATION_ID=***
: Input yourBot Token
,Application ID
npm run register
: registration discord commandsnpm run deploy
: registration cloudflare workers
- discord-api
- discord-interactions
- node-fetch
- tsx
- Discord Resource endpoints: https://discord.com/developers/docs/resources/application
- Discord Activity(Embedded App SDK): https://discord.com/developers/docs/activities/building-an-activity https://github.com/discord/embedded-app-sdk/tree/main/examples/discord-activity-starter