API for NYX
| db/codm | Initial commit | |
| public/image | Initial commit | |
| .env.example | Initial commit | |
| .gitignore | Initial commit | |
| codm.ts | Initial commit | |
| discord.ts | Initial commit | |
| fun.ts | Initial commit | |
| image.ts | Initial commit | |
| index.ts | Initial commit | |
| package.json | Update README and package.json | |
| README.md | Update README and package.json | |
| skyblock.ts | Initial commit | |
| tsconfig.json | Initial commit | |
| v1.ts | Initial commit | |
| wrangler.jsonc | Initial commit | |
nyx-api
API that provides various endpoints for fun, images, and Discord integrations, specifically for NYX
Usage
Access the API endpoints at https://api.night0721.xyz/v1/.
Endpoints
CODM
/api/v1/codm/build: Get details about a build/api/v1/codm/melee: Get details about a melee/api/v1/codm/perk: Get details about a perk/api/v1/codm/scorestreak: Get details about a scorestreak
Fun
/api/v1/fun/8ball: 8ball a question/api/v1/fun/doublestruck: Doublestruck a text/api/v1/fun/fractur: Fractur a text/api/v1/fun/reverse: Reverse a text/api/v1/fun/superscript: Superscript a text
Image
/api/v1/image/alone: Create an alone meme/api/v1/image/awesome: Create an awesome meme/api/v1/image/bestmeme: Create a bestmeme meme/api/v1/image/busted: Create a busted meme/api/v1/image/communism: Create a communism meme/api/v1/image/gun: Create a gun meme/api/v1/image/mask: Create a mask meme/api/v1/image/moment: Create a moment meme/api/v1/image/pray: Create a pray meme/api/v1/image/pressplay: Create a pressplay meme/api/v1/image/rifleshoot: Create a rifleshoot meme/api/v1/image/robert: Create a robert meme/api/v1/image/saveonlyone: Create a saveonlyone meme/api/v1/image/toilet: Create a toilet meme/api/v1/image/vr: Create a vr meme/api/v1/image/whodidthis: Create a whodidthis meme
Discord
Tip
For the following endpoints, if you want logoColor to be "presence", you must add presenceTheme query(must be online, idle, do not disturb, offline, default option is online), for theme clean, clean-inverted, discord, discord-inverted, full-presence, you must add presenceTheme query, if not online would be the default option
/api/v1/discord/user/json/[id]: Get rich presence of user with json/api/v1/discord/user/[id]: Get rich presence of user with image/api/v1/discord/server/[invite]: Get server information based on invite code/api/v1/discord/shield/[id]: Get user shield using shield.io
Installation
npm
npm install
Running locally
npx wrangler dev
Support
Join the official Support Server on Discord for help or feature requests.
Contributions
Contributions are welcomed, feel free to open a pull request.
License
This project is licensed under the GNU Public License v3.0. See LICENSE for more information.