Points
Documentation

Testing and Troubleshooting

Try automations safely before they go live, read run history, and fix the errors you're most likely to see.

Test Runs

The Test button in the editor runs the automation against one of your servers without changing anything.

  1. Pick a server under Test in.
  2. Choose which trigger to test. For a custom command, fill in its options and who is running it.
  3. Fill in the inputs, or use the server's own if the automation is installed there.
  4. Click Test, or press ⌘Enter or Ctrl+Enter.

The results show every balance, bank, role, item and message change the run would make, plus anything it printed. Then all of it is thrown away: nobody is paid and no messages are sent.

Tests read your server's real balances, so they show what would actually happen right now. Steps with a random chance only show one possible outcome, so test a few times to see both.

Every Run Is All or Nothing

A live run either finishes completely or changes nothing. If a step fails halfway through, for example because the bank runs out of points on the tenth member of a loop, the first nine payments are undone too, and no messages are sent.

This means a failed run is always safe to retry.

Run History

Each install keeps its runs under Runs in Settings → Automations. A run shows when it happened, what triggered it, which version ran, whether it succeeded, what it changed and any output from print.

Balance changes made by automations also appear in your server's transaction history, like any other change.

Common Errors

ErrorWhat to do
insufficient balanceTake points or Transfer points tried to take more than the member has. Check their balance first with an If step, or use Take points from members, which stops at 0.
the bank doesn't have enough pointsTop up the bank, or check points.bank.balance() before paying out.
member not foundThe member left the server or hasn't been seen by Points yet.
role ... has moderation or admin permissionsAutomations can't hand out roles with permissions like Administrator, Ban Members or Manage Roles. Use a different role.
role ... is managed by an integrationBot and booster roles can't be given or removed.
the member doesn't have enough of that itemTake an item asked for more than they own.
a script can store at most 1000 keysReuse storage keys instead of creating a new one for every member or day.
stopped: ... limitThe run hit one of the limits, like the 5 messages per run.

If a command run fails, the member sees the error privately. If a scheduled run fails, it's recorded under Runs and the schedule tries again next time. After 5 scheduled failures in a row, the install is paused.

Nothing Happens

  • Is the install on and ready? Check Settings → Automations. An install that is off, paused or missing a required input doesn't run.
  • Is the command registered? The custom commands list at the bottom of Settings → Automations shows each command's status. Click Sync now if it's stuck.
  • Does Points have permission? It needs to see and post in the channels it sends to, and its role must be above any role it gives out.
  • Is the log step going anywhere? Post to the log only sends to log channels that include the Automations log type. See What Are Logs?.
Need help?