refactor(SystemKeywords): comment out unused ID column logic for clarity
This commit is contained in:
parent
1c6adeb27f
commit
45d9d6f55e
2 changed files with 9 additions and 1 deletions
|
|
@ -1104,7 +1104,7 @@ export class DialogKeywords {
|
|||
// In case of unmatch, asks the person to try again.
|
||||
|
||||
if (result === null) {
|
||||
await this.talk({ pid, text: `Escolha por favor um dos itens sugeridos.` });
|
||||
await this.talk({ pid, text: `Digite por favor um dos itens sugeridos ou uma parte do texto.` });
|
||||
return await this.hear({ pid, kind, args });
|
||||
}
|
||||
} else if (kind === 'file') {
|
||||
|
|
|
|||
|
|
@ -579,6 +579,14 @@ export class KeywordsExpressions {
|
|||
return `${$1} = await dk.hear({pid: pid, kind:"email"})`;
|
||||
}
|
||||
];
|
||||
|
||||
keywords[i++] = [
|
||||
/^\s*hear (\w+\$*) as\s*number/gim,
|
||||
($0, $1) => {
|
||||
return `${$1} = await dk.hear({pid: pid, kind:"integer"})`;
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
keywords[i++] = [
|
||||
/^\s*hear (\w+\$*) as\s*integer/gim,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue