Skip to content

State File

Spigot Sales Webhook uses a JSON state file to remember which buyer names have already been seen for each configured plugin.

Default path:

scan:
state-file: "data/seen-sales.json"

Example state:

{
"initialized": true,
"seenSalesByPlugin": {
"Plugin Name": [
"examplebuyer"
]
}
}

Buyer keys are stored in lowercase form, so ExampleBuyer and examplebuyer are treated as the same buyer.

If the state file does not exist, the worker starts with empty state.

When notify-existing-on-first-run is false, the first successful scan:

  1. Scrapes all configured buyer pages.
  2. Stores all visible buyers.
  3. Marks the state as initialized.
  4. Sends no Discord messages.

This prevents old purchases from flooding Discord during setup.

Delete the configured state file if you want the worker to rebuild its baseline.

Terminal window
rm data/seen-sales.json

On Windows PowerShell:

Terminal window
Remove-Item data/seen-sales.json