mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +00:00
Merge remote-tracking branch 'origin/master' into profile-v2
# Conflicts: # index.js
This commit is contained in:
commit
658d2ade2c
@ -78,19 +78,27 @@ const { changelogs, currentVersion } = readLogFile('miao')
|
||||
const yunzaiVersion = packageJson.version
|
||||
const isV3 = yunzaiVersion[0] === '3'
|
||||
let isMiao = false
|
||||
let name = "Yunzai-Bot"
|
||||
let name = 'Yunzai-Bot'
|
||||
let isAlemonjs = false
|
||||
if (packageJson.name === 'miao-yunzai') {
|
||||
isMiao = true
|
||||
name = "Miao-Yunzai"
|
||||
name = 'Miao-Yunzai'
|
||||
} else if (packageJson.name === 'trss-yunzai') {
|
||||
isMiao = true
|
||||
name = "TRSS-Yunzai"
|
||||
name = 'TRSS-Yunzai'
|
||||
}
|
||||
else if (packageJson.name === 'a-yunzai') {
|
||||
isMiao = true
|
||||
name = 'A-Yunzai'
|
||||
isAlemonjs = true
|
||||
}
|
||||
|
||||
|
||||
let Version = {
|
||||
isV3,
|
||||
isMiao,
|
||||
name,
|
||||
isAlemonjs,
|
||||
get version () {
|
||||
return currentVersion
|
||||
},
|
||||
|
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()
|
Loading…
Reference in New Issue
Block a user