To use this module in Pylon, go to the editor, create a new file called xp.ts
, copy the contents of this repositorys xp.ts
into it and then put the following in your main.ts
:
import './xp';
This module requires an fAPI account for image generation.
Please refer to the ImageScript documentation on how to create one.
If you have an fAPI access token, expose it in your main.ts
as follows: global.FAPI_TOKEN = '<your token here>';
.
An example main.ts
would look like this:
global.FAPI_TOKEN = 'f03bc4bd35177305bc43cf3abb072436';
import './xp';