fix(services): change script file extension from .docx to .vbs in KBService
Some checks failed
GBCI / build (push) Failing after 8m50s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-03-30 00:07:05 -03:00
parent 2617409867
commit e300fcda60

View file

@ -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;