Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
/ nextcord.gay Public archive

A cloudflare worker to use the user-agent for ~~rickrolling~~ without a discord embed

License

Notifications You must be signed in to change notification settings

ooliver1/nextcord.gay

Repository files navigation

nextcord.gay

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

Build

  1. npm run build
  2. Find the output in ./dist/worker.mjs (module syntax)

Develop

  1. Make a .env file based off the .env.example file - valid URL and ID
  2. npn run dev
  3. Visit https://localhost:8787/

Test

  1. npm run test

Directory structure

  • .github/ - GitHub workflow scripts and configuration
  • ./src/ - Source code
    • index.ts - Main entry point
    • *.ts - Other importable files, not used directly
  • ./test/ - Tests
    • globals.d.ts - Globals found with the miniflare test environment
    • tsconfig.json - TypeScript configuration for test types
    • *.test.ts - Test files for the relevant files
  • ./types/ - Type declarations
    • domains.d.ts - Domains interface for domains.ts
    • env.d.ts - Global environment variables found in the env namespace
  • .env.example - Example environment variables
  • .gitignore - Git ignore file
  • build.js - Build script using esbuild
  • jest.config.js - Configuration for jest in ./tests
  • LICENSE - MIT license file
  • package-lock.json - npm lock file
  • package.json - npm package file
  • README.md - Hi
  • tsconfig.json - TypeScript configuration for the project
  • wrangler.toml - Config for wrangler - Cloudflare Workers CLI