mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +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 yunzaiVersion = packageJson.version
|
||||||
const isV3 = yunzaiVersion[0] === '3'
|
const isV3 = yunzaiVersion[0] === '3'
|
||||||
let isMiao = false
|
let isMiao = false
|
||||||
let name = "Yunzai-Bot"
|
let name = 'Yunzai-Bot'
|
||||||
|
let isAlemonjs = false
|
||||||
if (packageJson.name === 'miao-yunzai') {
|
if (packageJson.name === 'miao-yunzai') {
|
||||||
isMiao = true
|
isMiao = true
|
||||||
name = "Miao-Yunzai"
|
name = 'Miao-Yunzai'
|
||||||
} else if (packageJson.name === 'trss-yunzai') {
|
} else if (packageJson.name === 'trss-yunzai') {
|
||||||
isMiao = true
|
isMiao = true
|
||||||
name = "TRSS-Yunzai"
|
name = 'TRSS-Yunzai'
|
||||||
}
|
}
|
||||||
|
else if (packageJson.name === 'a-yunzai') {
|
||||||
|
isMiao = true
|
||||||
|
name = 'A-Yunzai'
|
||||||
|
isAlemonjs = true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
let Version = {
|
let Version = {
|
||||||
isV3,
|
isV3,
|
||||||
isMiao,
|
isMiao,
|
||||||
name,
|
name,
|
||||||
|
isAlemonjs,
|
||||||
get version () {
|
get version () {
|
||||||
return currentVersion
|
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