Miao-Yunzai/plugins/other/version.js

28 lines
593 B
JavaScript
Raw Permalink Normal View History

2023-03-10 04:51:48 +08:00
import { App, Common, Version } from '#miao'
let app = App.init({
id: 'version',
name: '版本',
desc: '版本'
})
app.reg({
version: {
rule: /^#版本$/,
desc: '【#帮助】 版本介绍',
fn: async function (e) {
let { changelogs, currentVersion } = Version.readLogFile('root')
return await Common.render('help/version-info', {
currentVersion,
changelogs,
name: 'Miao-Yunzai',
elem: 'cryo',
pluginName: false,
pluginVersion: false
}, { e, scale: 1.2 })
}
}
})
export const version = app.v3App()