A JS API for the discord bot Sokobot
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)
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();
Crossed out links are either not finish or cant be accessed at this time