processActionRecipe method
Attempts to process a command for a recipe. Returns true if the
regexTestString
matches that of the processor currently running.
The modifications are applied to the ActionRecipe provided.
Implementation
@override
bool processActionRecipe(ActionRecipe recipe, _) {
if (recipe.name.startsWith(AugnitoCommands.goTo)) {
recipe.name = AugnitoCommands.goTo;
recipe.searchText = recipe.receivedText.trim().substring(2);
recipe.searchText = recipe.searchText.trim().substring(2).trim();
recipe.isCommand = true;
return true;
}
return false;
}