Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyword Search #330

Open
Jonathan-Xue opened this issue Feb 22, 2018 · 1 comment
Open

Keyword Search #330

Jonathan-Xue opened this issue Feb 22, 2018 · 1 comment

Comments

@Jonathan-Xue
Copy link

Is there a way for commands trigger upon hearing just a sole word? Like if I want a function to trigger whenever the word 'up' is heard, whether it be 'move up', 'turn up', 'up up up', etc? Other than simply grabbing the potential possibilities and running a for-loop to check the entire array for an instance in the string?

@annemb22
Copy link

From the doc::
A named variable is a one word variable, that can fit anywhere in your command.
e.g. saying "calculate October stats" will call calculateStats('October');
'calculate :month stats': calculateStats,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants