Flow reference: Plugins

Economy

Wallets, daily and work rewards, payments, leaderboard, shop and inventory (Economy plugin).

Wallets, daily and work rewards, payments, leaderboard, shop and inventory (Economy 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

Action — operation


Choose the specific operation first, then fill only the inputs it requires. Different operations can return different data and can have different side effects.

Input: Fixed choice.

Default: balance.

Available choices (preserve the exact value):
balance — Balance
daily — Daily reward
work — Work
pay — Pay someone
leaderboard — Richest members
shop — Show the shop
buy — Buy an item
inventory — Inventory
add — Give money (admin)
remove — Take money (admin)
set — Set balance (admin)
shop-add — Add shop item (admin)
shop-remove — Remove shop item (admin)


Member (blank = who ran it) — 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: ``.


Other member (pay, balance of, admin) — target


Target member/role required by this operation. Do not confuse the requesting member with the object being changed.

Input: Text with variable suggestions.

Default: ``.


Amount (work: 50-200 range) — amount


Numeric quantity for this operation. Check the unit in the label; count, money and XP are different quantities.

Input: Text with variable suggestions.

Default: ``.


Shop item — item


Item key/name required by the selected shop or inventory operation. Keep it consistent when adding and purchasing items.

Input: Text with variable suggestions.

Default: ``.


Item role (shop-add, optional) — role


Choose a role from the correct server by ID or a supported variable. For changes, the bot needs Manage Roles and a higher role.

Input: Text with variable suggestions.


Item description (shop-add) — description


Explain this command, role, product or giveaway in terms of its result. Do not put credentials here.

Input: Text with variable suggestions.


Work cooldown (seconds) — cooldownSeconds


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

Input: Number.


Store as — storeAs


Choose a short result prefix such as result. Later blocks must use this same prefix and run after this block. It is not a Discord channel or a persistent table.

Input: Text.

Editor guidance: {eco.text} is a ready answer; also {eco.balance}, {eco.amount}, {eco.error}.

Default: eco.

Outputs and next steps

ok: The operation succeeded.
failed: The operation failed; provide a safe error response.

Read the result after this block, using its configured prefix and the fields supported by the selected operation. Do not assume every response has a text or id field.

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).