1.0.1 • Published 1 year ago

sokobot v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Sokobot-JS

A JS API for the discord bot Sokobot

References

Usage

Prerequisites

To use the JS API you will need the following

  • Node JS
  • The JS API npm install sokobot
  • An API token (Can be registered here)

Set Up

const Sokobot = require("sokobot"); // initialize your sokobot module
const sokobot = new Sokobot("{token}"); // initialize the sokobot instance with your provided api key

/**
 * Basic function to get a users level
 */
async function getLevel() {
  let user = await sokobot.getUser("{UserId}");

  console.log(user.getLevel());
}
getLevel();

Links

Crossed out links are either not finish or cant be accessed at this time

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago