mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-09 00:35:33 +02:00
Merge branch 'main' into command-refactor
This commit is contained in:
commit
1d84f332bb
1 changed files with 3 additions and 3 deletions
6
act.js
6
act.js
|
@ -1,4 +1,4 @@
|
||||||
import { writeFile } from 'fs';
|
import { writeFileSync } from 'fs';
|
||||||
|
|
||||||
import { getDetailedSkills, getWorldFunctions } from './utils/context.js';
|
import { getDetailedSkills, getWorldFunctions } from './utils/context.js';
|
||||||
import { sendRequest } from './utils/gpt.js';
|
import { sendRequest } from './utils/gpt.js';
|
||||||
|
@ -86,8 +86,8 @@ export async function executeCode(bot) {
|
||||||
src += ` ${line}\n`;
|
src += ` ${line}\n`;
|
||||||
}
|
}
|
||||||
src += `}\n`;
|
src += `}\n`;
|
||||||
|
|
||||||
writeFile('./temp.js', src, (err) => {
|
writeFileSync('./temp.js', src, (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue