Skip to content

Commit

Permalink
Fix synthesizing faq_reply (#463)
Browse files Browse the repository at this point in the history
We don't want to generate a verb phrase for it, but we do want
to generate all command phrases!
  • Loading branch information
gcampax committed Feb 11, 2021
1 parent 1c80150 commit 7976680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages/thingtalk/load-thingpedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ export default class ThingpediaLoader {
return;
if (!this._options.flags.configure_actions && (ex.value.invocation.channel === 'configure' || ex.value.invocation.channel === 'discover'))
return;
if (['say', 'debug_log', 'faq_reply'].includes(ex.value.invocation.channel))
if (ex.type === 'action' && ['say', 'debug_log', 'faq_reply'].includes(ex.value.invocation.channel))
return;
}
if (ex.value instanceof Ast.FunctionCallExpression) // timers
Expand Down

0 comments on commit 7976680

Please sign in to comment.