$increaseChannelVar

To increase channel variable with a certain amount

Usage

$increaseChannelVar[variable name;amount/expression;channel id;default amount (default is 0)]

Example (increase channel messages by 1):

$increaseChannelVar[messages;1]


Example (double the messages):

Member02/20/2024
!!exec Before: $getChannelVar[messages]
$increaseChannelVar[messages;x*2]
After: $getChannelVar[messages]

Custom Command Bot 02/20/2024
Before: 5
After: 10