miao-plugin/main.js
柠檬冲水 66b1593e43
创建A-Yunzai识别并修复嵌套runtime
Signed-off-by: 柠檬冲水 <10424920+ningmengchongshui@user.noreply.gitee.com>
2023-10-24 08:49:31 +00:00

11 lines
255 B
JavaScript

import { createApps } from 'alemonjs'
import { apps } from './index.js'
const app = createApps(import.meta.url)
app.setMessage(async e => {
await runtime.init(e)
e.sender = {}
e.sender.card = e.user_name
return e
})
app.component(apps)
app.mount()