2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00
xiaoyao-cvs-plugin/main.js

17 lines
434 B
JavaScript
Raw Normal View History

2023-11-02 11:37:59 +08:00
import { createApps } from 'alemonjs'
import * as apps from './index.js'
import { render } from './adapter/render.js'
const xiaoyao = YUNZAIV2(apps['rule'], apps)
const app = createApps(import.meta.url)
app.setMessage(async e => {
await runtime.init(e)
e.sender = {}
e.sender.card = e.user_name
e.checkAuth = val => val
return e
})
app.setArg(() => [{ render }])
app.setCharacter('#')
app.component({ xiaoyao })
app.mount()