Commands · Step
Run a console command
Run a command as the server console, only if the owner has put its first word on the allowlist. op, stop, lp and similar are always refused.
m.cmd.run_as_console
In a flow
“When a player uses /announce → Run a console command: say {trigger.args}.”
When a player uses /announce → Run a console command: say {trigger.args}.
What it does
Run a command as the server console, only if the owner has put its first word on the allowlist. op, stop, lp and similar are always refused. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under Commands in the palette.
When to use it
Use it when the flow needs to: run a command as the server console, only if the owner has put its first word on the allowlist. op, stop, lp and similar are always refused.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Command Text
-
The console command, like say Hello. Its first word must be on the server's allowlist.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses say Hello.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more
- I understand Yes / no
-
This runs with the console's power, not the player's. The server owner must have allowed this command's first word.
What goes there: Type it in the side panel, or wire in true or false. e.g. true
If it's empty: Optional. Left alone, it's off.
Connects fromAdd a labelAdd to a leaderboardAge from birthdayAI check a messageAnagram checkAndAnswer a deadlineAnti-nuke guardand 270 more