leonhard-s / auraxium

A high-level Python wrapper for the PlanetSide 2 API.
https://auraxium.readthedocs.io/
MIT License
28 stars 8 forks source link

Add conditions to Trigger init args #40

Closed LordFlashmeow closed 3 years ago

LordFlashmeow commented 3 years ago

Solves #39.

Allows for the decorator @client.trigger(..., conditions=[sample_condition]) instead of assigning conditions after initialization.

leonhard-s commented 3 years ago

Note: Due to forks not having access to the unencrypted version of GitHub secrets, the PR unit tests currently fail (#41, I'll look into it). I manually ran the unit tests locally and confirmed that they pass.