Points
Documentation

Building With Blocks

Build automations by stacking steps under a trigger. Every block, how to pick members and amounts, conditions, and placeholders for messages.

The editor opens full screen. The left panel lists your inputs and steps, the middle shows the automation, and the right panel shows the selected step's settings or the results of a test.

Use the Blocks and Code switch at the top to move between the block view and the Luau it produces.

Triggers

Every automation needs at least one trigger, and every other step goes inside one. An automation can have several triggers, for example a weekly schedule and a command that does the same thing on demand.

TriggerWhen it runs
On a scheduleAt the times you set. See Schedules.
When someone uses a custom commandWhen a member uses the command. See Custom Commands.

Steps

Points

StepWhat it does
Give pointsAdds points to one member
Take pointsTakes points from one member. The run fails if they don't have enough.
Set balanceSets one member's balance to an exact amount
Transfer pointsMoves points from one member to another
Give points to membersAdds the same amount to every member that matches
Take points from membersTakes the same amount from every member that matches. Balances stop at 0 instead of failing.
Set members' balanceSets every member that matches to the same balance

Bank

StepWhat it does
Pay from the bankMoves points from the server bank to a member. The run fails if the bank doesn't have enough.
Add to the bankAdds points to the server bank
Take from the bankRemoves points from the server bank
Tax membersTakes a percentage of every matching member's balance into the bank

Roles and Items

StepWhat it does
Give a roleGives a member a role
Remove a roleRemoves a role from a member
Give an itemAdds a shop item to a member's inventory, up to 100 at a time. It doesn't cost them anything.
Take an itemRemoves a shop item from a member's inventory. The run fails if they don't have enough.

Automations can't give or remove roles that have moderation or admin permissions (like Administrator, Ban Members or Manage Roles), roles managed by an integration, or @everyone. Points also needs a role above the ones it hands out, the same as for any Discord bot.

Messages

StepWhat it does
Send a messagePosts in a channel of your server
ReplyAnswers the person who ran the command. Only available inside a custom command. You can make the reply visible only to them.
Post to the logSends to your log channels that include the Automations log type. See What Are Logs?.

A run can send up to 5 messages. Messages can mention members but never @everyone or @here.

Logic

StepWhat it does
IfRuns the steps under Then when a condition is true, and the steps under Otherwise when it isn't
For each memberRepeats the steps inside for each matching member, up to 1,000
StopEnds the run there. Anything done before it is kept.

Choosing a Member

Steps that act on one member ask who. The choices depend on where the step is.

ChoiceMeans
Person who ran the commandThe member who used the custom command
A command optionA member picked in one of the command's options
An inputA member each server chooses when installing
Current memberThe member being handled inside For each member
A specific memberA fixed member, by ID

Choosing a Group of Members

Bulk steps and For each member act on every member that matches. Leave the filter empty for everyone, or narrow it down:

  • has a role
  • has at least a certain balance
  • has at most a certain balance
  • owns a shop item

You can combine them. "Has @Regulars and at least 1,000 points" matches only members who meet both.

Amounts

Any amount can be a fixed number, a number from a command option, or a number from an input. Inputs are the better choice for anything a server might want to change, like the size of a stipend.

Conditions

The If step checks one of these:

ConditionExample
A member's balanceThe person who ran the command has at least 100 points
A member's rolesThe current member has, or doesn't have, @Regulars
A random chance5% of the time

Placeholders in Messages

Message text can include placeholders in curly brackets. The editor lists the ones you can use at each step.

PlaceholderBecomes
{user}A mention of the person who ran the command
{member}A mention of the current member inside For each member
{count}How many members the last bulk step changed
{total}How many points the last bulk step moved
{input-name}The value of an input, by its name
{option-name}The value of a command option, by its name

For example: Collected {total} points from {count} members.

Inputs

Inputs are the settings a server fills in when it installs an automation. Use them for anything server-specific, like channels, roles and amounts, so the automation works in any server and can be shared.

Add an Input from the left panel and give it a name, a label, a type, and whether it's required. You can also set a default, and limits where they apply. After that, any step that asks for a channel, role, member or amount offers the input as a choice.

Input typeHolds
ChannelA channel in the server
RoleA role in the server
MemberA member of the server
NumberAny number
Whole numberA number without decimals
TextA short piece of text
On/offA switch that's on or off
ChoiceOne option from a list you write

Custom Code

If you change something in the code view that blocks can't show, it appears in the block view as a Custom code block. It runs exactly as written, and you can keep editing the rest of the automation with blocks around it.

Keyboard Shortcuts

ShortcutAction
⌘S or Ctrl+SSave
⌘Enter or Ctrl+EnterTest
↑ and ↓Select the previous or next step
⌥↑ and ⌥↓, or Alt+↑ and Alt+↓Move the selected step up or down
Backspace or DeleteDelete the selected step
EscClear the selection

You can also drag steps to reorder them, or move them into and out of triggers, If and For each member.

Need help?