The idea is to create a new function to do this:
When you have a macro with multiple commands to run, something like "alarm in thirty minutes | alarm in an hour | alarm in two hours", running a script function like BFS.VoiceBot.CommandTriggered will return the string of the command that I just said.
This way I can create a macro with multiple functionalities by looking at the command text.
If this already exists, how do I do it?
To clarify the overall goal, you're looking for a way to have a macro that does something (sets an alarm) and accepts parameters (15 mins, 30 mins, etc)?
Yes. The idea is that the script can parse which command has said the user, so I can type multiple commands in the same macro, and then be able to know which command was said.