(async function main () {
//Require client class
const Client = require('swgoharena')
//Init a new client with name and host
const client = new Client({
name : "My arena monitor #1",
host : "http://arena.shittybots.me:1234/"
})
//Connect client (promise)
await client.connect()
//Example allycode query (promise)
let allycode = 282392964
let result = await client.get(allycode)
console.log( 'result of', allycode, '=>', result )
})()
swgoharena
1.2.0 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i swgoharena
Weekly Downloads
2
Version
1.2.0
License
ISC
Unpacked Size
4.49 kB
Total Files
3