- Notifications
You must be signed in to change notification settings - Fork2
A TypeScript library for interacting with the o!rdr API and WebSocket
License
NotificationsYou must be signed in to change notification settings
LockBlock-dev/ordr.js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ordr.js is a Node.js module that allows you to easily interact with the o!rdr API and WebSocket.
- Promise-based
- Performant
- 100% coverage of the o!rdr API and WebSocket
- InstallNodeJS
- Run
npm install ordr.js
import{Client}from"ordr.js";constclient=newClient();constskins=awaitclient.getSkins();console.log(skins);
If you have an API key, you can specify it when initiating the client:
constclient=newClient("API_KEY");
You can send a replay by doing the following:
client.sendRender({ ...replay:"https://domain.tld/path/to/your/file.osr", ...})
client.sendRender({ ...replay:"path/to/your/file.osr", ...})
constfile=readFile("path/to/your/file.osr");client.sendRender({ ...replay:file, ...})
constfile=createReadStream("path/to/your/file.osr");client.sendRender({ ...replay:file, ...})
import{Client,Events}from"ordr.js";constclient=newClient();client.on(Events.Connected,()=>console.log("Client connected!"));client.start();
List of events availablehere
See thelicense
About
A TypeScript library for interacting with the o!rdr API and WebSocket
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.