Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 2.44 KB

README.md

File metadata and controls

58 lines (41 loc) · 2.44 KB

GW2 Fractal Instabilties for T4

This work is licensed under CC BY-NC 4.0.

How to use

There's basically two options at the moment:

  • Use Aleeva's API. At the moment the API documentation is not finished but you can just contact itsmefox on the Aleeva Discord server.
  • Integrate data.json into your own bot. The instabilities object contains the fractal level as key and the corresponding instabilities as values
    • e.g. data["instabilities"]["76"][0] gives the instabilities for level 76 on ????-01-01.

But I don't want to write my own bot!

Where else can I find the data?

The format of data.json

Here's a commented TypeScript interface.

// looks funny but that's how you can get 76-100 as strings
type LowerLevels = `6` | `7` | `8` | `9`;
type UpperLevels = `0` | `1` | `2` | `3` | `4` | `5` | LowerLevels;
type FractalLevel =
  | `7${LowerLevels}`
  | `8${UpperLevels}`
  | `9${UpperLevels}`
  | `100`;

// list of instabilities in GW2's order
type Instabilities = Array<number>;

// zero-indexed list of instabilities for a whole *leap* year
type Days = Array<Instabilities>;

export interface Data {
  instabilities: { [x in FractalLevel]: Days };
  // list of instability names, indexed in `instabilities`
  instability_names: string[];
}

🛑 Keep in mind that the index of Days does include the leap day and you will have account for that. 🛑

Credits & Thanks to

  • The fractal guild who initially discovered it.
  • Discretize [dT] for putting the required info into the open.
  • itsmefox for writing and providing Aleeva's API.
  • Invisi (this guy) for being a data hoarder and automating the collection of this data.