wolvesville.js is a Node.js module to interact with the Wolvesville API.
- Website : https://wolvesvillejs.github.io/website
- NPM package : https://www.npmjs.com/package/wolvesville.js
- Discord server : https://discord.gg/C52jNDPemY
Latest version of Node.js required
npm install wolvesville.js
Log the username and level of the player with username Arnaud
:
const Wolvesville = require('wolvesville.js');
const client = new Wolvesville.Client();
client.login('yourWolvesvileBotApiKey');
async function main() {
const player = client.players.fetchByUsername('Arnaud');
console.log(player.username, player.level);
}
main();