new(kb.gbapp): #259 BASIC from cell import done, no need a /basic.

This commit is contained in:
rodrigorodriguez 2023-02-23 06:14:40 -03:00
parent 78778da3a7
commit a0648b3d42

View file

@ -524,7 +524,7 @@ export class KBService implements IGBKBService {
// 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 gbaiName = `${min.instance.botId}.gbai`;
const gbdialogName = `${min.instance.botId}.gbdialog`;