From 7976680a95de0af5cf1bd5ba15374252033a15f4 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 10 Feb 2021 16:33:29 -0800 Subject: [PATCH] Fix synthesizing faq_reply (#463) We don't want to generate a verb phrase for it, but we do want to generate all command phrases! --- languages/thingtalk/load-thingpedia.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/thingtalk/load-thingpedia.ts b/languages/thingtalk/load-thingpedia.ts index 5f6bc7ce7..ed5bb2397 100644 --- a/languages/thingtalk/load-thingpedia.ts +++ b/languages/thingtalk/load-thingpedia.ts @@ -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