Caution
I no longer own the nextcord.gay domain. https://nextcord-gay.ooliver.workers.dev has been kept up as it does not cost me anything.
Warning
This has now been archived. I was not willing to pay $30 to renew this domain (it was $8 for the first year), so this has come to its graceful end.
A cloudflare worker to use the user-agent for rickrolling without a discord embed
npm run build- Find the output in
./dist/worker.mjs(module syntax)
- Make a
.envfile based off the.env.examplefile - valid URL and ID npn run dev- Visit https://localhost:8787/
npm run test
.github/- GitHub workflow scripts and configuration./src/- Source codeindex.ts- Main entry point*.ts- Other importable files, not used directly
./test/- Testsglobals.d.ts- Globals found with the miniflare test environmenttsconfig.json- TypeScript configuration for test types*.test.ts- Test files for the relevant files
./types/- Type declarationsdomains.d.ts- Domains interface fordomains.tsenv.d.ts- Global environment variables found in theenvnamespace
.env.example- Example environment variables.gitignore- Git ignore filebuild.js- Build script usingesbuildjest.config.js- Configuration for jest in./testsLICENSE-MITlicense filepackage-lock.json-npmlock filepackage.json-npmpackage fileREADME.md- Hitsconfig.json- TypeScript configuration for the projectwrangler.toml- Config for wrangler - Cloudflare Workers CLI