thedesk/app/aiscript.js

11 lines
323 B
JavaScript
Raw Normal View History

2020-11-28 07:57:11 +11:00
const { AiScript, parse, values, utils } = require('@syuilo/aiscript')
2021-01-09 23:07:59 +11:00
global.sanitizeHtml = require('sanitize-html')
2020-11-28 07:57:11 +11:00
global.asValue = values
global.AiScript = AiScript
global.asParse = parse
global.asCommon = {
'TheDesk:console': values.FN_NATIVE((z) => {
console.log(z[0].value)
})
}
global.asUtil = utils