Skip to content

Sokobot-Hosted/Sokobot-JS

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published