- Change
wrangler.toml
(We recommend to change name field) npm install
- Put secrets via wrangler (view below)
npm run build
npm run publish
- Paste
https://<YOUR_WORKERS_PROJECT_NAME>.<YOUR_CLOUDFLARE_ACCOUNT_NAME>.workers.dev/interactions
toINTERACTIONS ENDPOINT URL
(Discord Developer Portal) npm run register
(Need Node.js 18+)- Try
/ping
(maybe works)
npx wrangler secret put DISCORD_PUBLIC_KEY
npx wrangler secret put DISCORD_CLIENT_ID
npx wrangler secret put DISCORD_TOKEN
This repository has supported auto deploy to Cloudflare Workers via GitHub Actions.
- Add Actions Secrets
CF_ACCOUNT_ID
andCF_API_TOKEN
(Not sure where these are? Check out the guide below) - Push, and it works (Don't deployed? Check Actions status)