new(kb.gbapp): #259 BASIC from cell import done, no need a /basic.
This commit is contained in:
parent
78778da3a7
commit
a0648b3d42
1 changed files with 2 additions and 2 deletions
|
@ -524,8 +524,8 @@ export class KBService implements IGBKBService {
|
||||||
|
|
||||||
// In case of code cell, compiles it and associate with the answer.
|
// In case of code cell, compiles it and associate with the answer.
|
||||||
|
|
||||||
if (answer.toLowerCase().startsWith ('/basic') ){
|
if (/TALK\s*\".*\"/.test(answer) || answer.toLowerCase().startsWith ('/basic') ){
|
||||||
const code = answer.substr(6);
|
const code = answer.substr(6);
|
||||||
const gbaiName = `${min.instance.botId}.gbai`;
|
const gbaiName = `${min.instance.botId}.gbai`;
|
||||||
const gbdialogName = `${min.instance.botId}.gbdialog`;
|
const gbdialogName = `${min.instance.botId}.gbdialog`;
|
||||||
const scriptName = `tmp${GBAdminService.getRndReadableIdentifier()}.docx`;
|
const scriptName = `tmp${GBAdminService.getRndReadableIdentifier()}.docx`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue