Skip to main content

Quickstart

1. Install dependencies

Install eventStream and nexAction before installing insight.

2. Load insight

insight starts automatically after install. If needed, reload the client.

3. Set your target

insight.setTarget("TargetName");

4. Check current affs

insight.currentAffs();

5. Enable prompt display

insight.reporting.promptDisplay = true;
insight.reporting.probabilityThreshold = 0.5;

6. Listen for events

eventStream.registerEvent("insightGotAff", (aff) => {
console.log(`${aff.player.id} gained ${aff.id}`);
});