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

Options to set a commandPrefix in addCommands() #240

Closed
wants to merge 2 commits into from
Closed

Options to set a commandPrefix in addCommands() #240

wants to merge 2 commits into from

Conversation

quentin-sommer
Copy link

@quentin-sommer quentin-sommer commented Dec 4, 2016

Description

Added possibility to set a commandPrefix in a Ok google [...] fashion

Motivation and Context

The change allow to filter out a lot of noise by only triggering when the prefix is spoken.

Fixes #18

How Has This Been Tested?

Tested the match with pref and the no-match without the prefix
Tests : cd1f756#diff-e504a2e67b28d9ebc5fac06973ab8275R487

recognition.onresult will not add any commandPrefix

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@quentin-sommer
Copy link
Author

NB: Travis fails because of incompatibility of yarn and iojs
Node.js version v3.3.1 does not meet requirement for yarn. Please use Node.js 4 or later.

@quentin-sommer
Copy link
Author

@TalAter Any thoughts on this ?

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

Successfully merging this pull request may close these issues.

Allow defining a command prefix
1 participant