mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 09:27:34 +00:00
commit
185da994f5
8
index.ts
8
index.ts
@ -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
12
main.js
Normal 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()
|
Loading…
Reference in New Issue
Block a user