thedesk/app/aiscript.js

13 lines
394 B
JavaScript
Raw Normal View History

2020-11-28 07:57:11 +11:00
const { AiScript, parse, values, utils } = require('@syuilo/aiscript')
const gcc = require('textarea-caret')
global.getCaretCoordinates = gcc
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