$awaitedCommand
Triggered when an awaited command gets initiated.
$awaitedCommand[] is a callback, which means it's used in the command trigger (not the code). The command is ran when an awaited command gets initiated.
Syntax
$awaitedCommand[name;(filter)]
Parameters
name: The name used in$awaitFunc[]function.filter: It is used to limit user input. (Optional)
Supported filters
<numeric>: Accepts only number input.<word1/word2>: Accepts only specified words provided inside<>. Use/as a separator for multiple words.
Example
Without filter
Trigger: $awaitedCommand[say;]
$nomention
$message

With choose filter
Trigger: $awaitedCommand[odd;<yes/no/cancel>]
$nomention
$if[$message==yes]
Your answer is correct!
$elseif[$message==no]
Your answer is incorrect!
$elseif[$message==cancel]
Command cancelled!
$endif

With numeric filter
Trigger: $awaitedCommand[odd;<numeric>]
$nomention
You have provided a number: $message

For more info, see the Awaited Commands Guide.