Skip to content

Commit

Permalink
fix: custom trigger casing
Browse files Browse the repository at this point in the history
  • Loading branch information
idosal committed Dec 18, 2022
1 parent d90af04 commit a46837a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/content/audio.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function setVoice(v) {
export function setTriggerPhrase(t) {
console.log('setPhrase', t)

triggerPhrase = t;
triggerPhrase = t ? t.toLowerCase() : "hey girl"
}

function stopAnswer() {
Expand Down Expand Up @@ -303,7 +303,6 @@ try {
const instruction = trimmed.substring(triggerPhrase.length)
if (instruction && instruction?.length > 2) {
getAnswer(instruction)
return
} else {
startListening()
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ChassistantGPT",
"description": "Use ChatGPT as your personal assistant",
"version": "1.6.0",
"version": "1.6.1",
"manifest_version": 3,
"icons": {
"16": "assets/logo.png",
Expand Down

0 comments on commit a46837a

Please sign in to comment.