mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
|
import { createApps } from 'alemonjs'
|
||
|
import { apps } from './index.js'
|
||
|
const app = createApps(import.meta.url)
|
||
|
app.setMessage(async e => {
|
||
|
const data = await runtime.init(e)
|
||
|
e = data.e
|
||
|
e.sender = {}
|
||
|
e.sender.card = e.user_name
|
||
|
return e
|
||
|
})
|
||
|
app.component(apps)
|
||
|
app.mount()
|