mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
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()
|