Set the value of the defined message variable to a new value. You can provide a message ID in the 2nd field to set the variable value of the specific message.
FUNCTION USAGE
$setMessageVar[varName;newValue]
$setMessageVar[varName;newValue;messageID]
Properties:
varName - The variable being called in the command.
newValue - The new value for the message variable.
messageID - The ID of the message attached to the variable.
​
​
Example 1: Setting the message variable value to the command message.
1
bot.Command({
2
name: "check",
3
code:`
4
$setMessageVar[test;alot of testing]
5
`})
Copied!
Example 2: Setting a specific message's variable value.
1
bot.Command({
2
name: "check",
3
code:`
4
$getMessageVar[test;alot of testing;39486529847693486]