Flow reference: Plugins

Give Message XP

Give the member random XP (with a cooldown). The levelup output runs when they reach a new level (Leveling plugin).

Give the member random XP (with a cooldown). The levelup output runs when they reach a new level (Leveling plugin).

When and how to use it

Connect the input from the preceding step on the path that should perform this operation.
Fill the fields with data available in the trigger's context.
Connect the needed outputs; an unconnected path cannot run later blocks.

Configuration fields

Member (blank = author) — user


Choose the target user. {user} may be a command's selected user; {author} is the caller. Use an ID or the variable picker rather than a display name.

Input: Text.

Default: ``.


Min XP — minXp


Lower XP amount per qualifying event. Pair it with Max XP and the cooldown.

Input: Number.

Default: 15.


Max XP — maxXp


Upper XP amount per qualifying event. Keep it no lower than Min XP.

Input: Number.

Default: 25.


Cooldown (seconds) — cooldownSeconds


Minimum time in seconds between qualifying rewards/actions. A longer cooldown reduces repeated triggering.

Input: Number.

Editor guidance: Messages inside the cooldown give no XP, so spam doesn't level anyone up.

Default: 60.

Outputs and next steps

levelup: A new level was reached.
out: Continue to the next step.

Test and troubleshoot

Install the corresponding plugin and configure its required accounts, channels and secrets. Test an API read before a write operation. An external-service error is not a reason to recreate the whole bot.

Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).