Skip to content

justandras/discord-widget-redirect

Repository files navigation

Discord widget redirect

Cloudflare Worker to redirect users to your discord server using the widget API.

Important

Make sure to enable the Server Widget by going to Server SettingsEngagement, checking Enable Server Widget and selecting an Invite Channel.

Deploy on Cloudflare

  • Clone this repo
  • run npm install
  • run npx wrangler deploy or npm run deploy and follow the instructions
  • Go to your Cloudflare Account Home page on dash.cloudflare.com
  • On the left go to Compute (Workers)Workers & Pages
  • Select your deployed worker and go to SettingsDomains & Routes and add a domain or subdomain
  • Go to SettingsVariables and Secrets and add your Discord server ID as a plaintext variable named DISCORD_SERVER_ID

Setting up a development environment

  • Clone this repo
  • npm install
  • Run npm run dev to get the development server up
  • Access it through http://localhost:8787/

This project was build on the foundation of Invidget.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published