Skip to content
Snippets Groups Projects
Unverified Commit 057ce73b authored by syuilo's avatar syuilo Committed by GitHub
Browse files

refactor

parent 66b07578
No related branches found
No related tags found
No related merge requests found
import { utils, values } from '@syuilo/aiscript';
import { jsToVal } from '@syuilo/aiscript/built/interpreter/util';
// TODO: vue3に移行した折にはvmを渡す必要は無くなるはず
export function createAiScriptEnv(vm, opts) {
let apiRequests = 0;
return {
......@@ -42,6 +43,7 @@ export function createAiScriptEnv(vm, opts) {
};
}
// TODO: vue3に移行した折にはvmを渡す必要は無くなるはず
export function createPluginEnv(vm, opts) {
const config = new Map();
for (const [k, v] of Object.entries(opts.plugin.config || {})) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment