Skip to content

wolvesvillejs/wolvesville.js

Repository files navigation

About

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!

Installation

Latest version of Node.js required

npm install wolvesville.js@dev

Example usage

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();