Random scripts for GW2 guilds Crimson Blackout [CBo] and Wovles of War [PACK]
- Create
.env
file in root directory. seesample.env
for format. - run
npm install
. Install dependencies
For current date:
npm run attendence
or for a given date:
npm run attendence "05/17/2023"
Loading the module will attempt to load process.env.GW2_API_TOKEN
(recomended)
import { gw2 } from "./gw2/api.js";
let account = await gw2.account.get();
console.log( account );
otherwise you can set the api in code:
import { gw2 } from "./gw2/api.js";
gw2.apikey( YOUR_API_KEY );
let account = await gw2.account.get();
console.log( account );