/2b2t

A lightweight & easy to use npm package for 2b2t.

Primary LanguageJavaScriptMIT LicenseMIT

npm install 2b2t

A lightweight & easy to use npm package for getting 2b2t queue info.

How to install:

$ npm install 2b2t

Usage:

PrioQ:

Function: PrioQ()
let prio = await PrioQ()
prio[1] // Players in PrioQ.
prio[2] // Estimated Time in PrioQ. 

NormalQ:

Function: queue()
queue().then(d => {
  d.queue;      // Players in NormalQ.
  d.updatetime; // Last time data was upated.
});

Support

https://discord.gg/nPPyxc4

Contributing:

Feel free to make contributions to this project. Pull Requests & Issues will be reviewed.

Credits:

Thank you LolRiTTeR for the 2b2t API.

License:

MIT