fix(services): change script file extension from .docx to .vbs in KBService
Some checks failed
GBCI / build (push) Failing after 8m50s
Some checks failed
GBCI / build (push) Failing after 8m50s
This commit is contained in:
parent
2617409867
commit
e300fcda60
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ export class KBService implements IGBKBService {
|
|||
if (/TALK\s*\".*\"/gi.test(answer) || isBasic) {
|
||||
const code = isBasic ? answer.substr(6) : answer;
|
||||
const packagePath = GBUtil.getGBAIPath(min.botId, `gbdialog`);
|
||||
const scriptName = `tmp${GBAdminService.getRndReadableIdentifier()}.docx`;
|
||||
const scriptName = `tmp${GBAdminService.getRndReadableIdentifier()}.vbs`;
|
||||
const localName = path.join('work', packagePath, `${scriptName}`);
|
||||
fs.writeFile(localName, code, { encoding: null });
|
||||
answer = scriptName;
|
||||
|
|
Loading…
Add table
Reference in a new issue