!42 增加q-yunzai启动器

Merge pull request !42 from 柠檬冲水/N/A
This commit is contained in:
Kokomi 2023-10-23 19:04:03 +00:00 committed by Gitee
commit 185da994f5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 12 additions and 8 deletions

View File

@ -1,8 +0,0 @@
import { createApp, getAppName } from 'alemonjs'
const AppName = getAppName(import.meta.url)
const { apps } = await import('./apps/index.js').finally(() => {
console.log('[APP] 喵喵插件 启动')
})
const app = createApp(AppName)
app.component(apps)
app.mount()

12
main.js Normal file
View File

@ -0,0 +1,12 @@
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()