A project to generate vanity links to discord invites using Cloudflare Workers.
This project requires Bun to be installed. You also need a free Cloudflare account to deploy to.
To use, clone and install the project:
$ git clone https://github.com/Chooks22/cloudflare-gg
$ cd cloudflare-gg
$ bun i
Setup wrangler
and update the wrangler.toml
file to suit your own deployment.
Then deploy your project using:
$ bun run deploy
Create a key to generate urls:
$ bun generate-key
Open up the .env
file and update API_URL
to your current deployment:
API_KEY="..."
API_URL="https://your-deployment.workers.dev"
Generate your first vanity url using:
$ bun create-invite gamers hrgUh5kFns
A new vanity url https://your-deployment.workers.dev/gamers has been generated and should now redirect you to https://discord.com/invite/hrgUh5kFns.
$ bun create-invite <invite-key> <invite-code>
$ bun list-keys