Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 793 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 793 Bytes

ligbans

api that gives interface for litebans index (useful for ssr banlist tables).

generally inspired and blatantly copied:

honorable mention

example

import connectLitebans from "ligbans";
const cons = connectLitebans(
  "mysql://username:[email protected]:3306/bantable"
);
let query = await cons.bans({ offset: 0, limit: 16 });
query == [
  {
    id: 727n,
    byName: "Console",
    reason: "§6[§eAnti-cheat Automatic Action§6] §cToo many combined movement violations.",
    time: 1727727727727n,
    origin: "QueueHub",
    expire: 2727-27-27T10:27:27.000Z,
    freedBy: "#expired",
    freedReason: null,
  },
  // ...
]