Skip to content

a binding through drizzle for litebans database (yet mysql only, wip)

License

Notifications You must be signed in to change notification settings

LangDuaMC/ligbans

Repository files navigation

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,
  },
  // ...
]

About

a binding through drizzle for litebans database (yet mysql only, wip)

Resources

License

Stars

Watchers

Forks