Add files via upload

This commit is contained in:
RT15548
2026-02-28 21:44:17 +08:00
committed by GitHub
parent 0dcb29adad
commit 3048b2885a

View File

@@ -758,11 +758,6 @@ function buildEjsContext() {
if (val === 'true' || val === 'True' || val === 'TRUE') return true; if (val === 'true' || val === 'True' || val === 'TRUE') return true;
return val; return val;
} }
// 字符串布尔值转为真正的布尔值
if (val === 'false' || val === 'False' || val === 'FALSE') return false;
if (val === 'true' || val === 'True' || val === 'TRUE') return true;
return val;
}
// setvar: write a chat variable (no-op for our purposes, just to avoid errors) // setvar: write a chat variable (no-op for our purposes, just to avoid errors)
function setvar(name, value) { function setvar(name, value) {
@@ -774,19 +769,6 @@ function buildEjsContext() {
getvar, setvar, getvar, setvar,
vars, vars,
Number, Math, JSON, String, Array, Object, parseInt, parseFloat, Number, Math, JSON, String, Array, Object, parseInt, parseFloat,
console: { log: () => {}, warn: () => {}, error: () => {} },
};
}
// setvar: write a chat variable (no-op for our purposes, just to avoid errors)
function setvar(name, value) {
if (name) vars[name] = value;
return value;
}
return {
getvar, setvar,
Number, Math, JSON, String, Array, Object, parseInt, parseFloat,
console: { log: () => { }, warn: () => { }, error: () => { } }, console: { log: () => { }, warn: () => { }, error: () => { } },
}; };
} }