Skip to content

discordhttps/cloudflare-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Guide

  1. Add secrets

    npx wrangler secret put TOKEN
    npx wrangler secret put PUBLICKEY
  2. Install dependencies

    npm i
  3. Get your Public Key

  4. Setup Registrar

    • Open register.js
    • Replace "YOUR TOKEN HERE" at line 10 with your token
    • Replace "YOUR PUBLIC KEY" at line 12 with your public key
    • Run: npm run register
  5. Deploy your project

    npx wrangler deploy
  6. Copy your deploy URL

  7. Set the Interactions Endpoint URL

    • Go to Discord Developer Portal
    • Select your bot
    • Open General Information from the sidebar
    • Paste the deploy URL into Interactions Endpoint URL

About

Example of discord.https with Cloudflare Workers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published