wolvesville.js is a Node.js module to interact with the Wolvesville API.
You can join us on our Discord server https://discord.gg/HuNzvV9S6Z!
Latest version of Node.js required
npm install wolvesville.js@dev
Log the username and level of the player with username Arnaud
:
const Wolvesville = require('wolvesville.js');
const client = new Wolvesville.Client('yourWolvesvileBotApiKey');
async function main() {
const player = await client.players.fetch('Arnaud');
console.log(player.username, player.level);
}
main();