$alternativeParsing
Changes the way how triggers are read.
Syntax
$alternativeParsing
This function was added at the end of 2019 as an experiment, and it can be unstable and break your commands. You should not use
$alternativeParsing
when making your bot.
Example
- Create two commands and set the trigger
hello
for one command andhelloworld
for the other. - Add the
$alternativeParsing
function to the command code with thehello
trigger.
Code with trigger hello
:
$nomention
$alternativeParsing
$description["hello"]
Code with trigger helloworld
:
$nomention
$description["helloworld"]
- Execute commands