Skip to content

Commit

Permalink
feat:加载日志显示版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhan258 committed Aug 3, 2023
1 parent 39c726f commit 2c8fa30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 1.2.1
* 加载日志显示版本号
# 1.1.4
* 透ta
# 1.1.3
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from 'node:fs'
import chalk from 'chalk'
import { Config } from './utils/config.js'

if (!global.segment) {
global.segment = (await import('oicq')).segment
Expand Down Expand Up @@ -40,6 +41,7 @@ logger.info(chalk.green.bold('█◣ ◥▅█▀    ▐██◤'))
logger.info(chalk.green.bold('▐█▙▂    ◢██◤'))
logger.info(chalk.green.bold('◥██◣    ◢▄◤'))
logger.info(chalk.green.bold('   ▀██▅▇▀'))
logger.info(chalk.green.bold(`当前版本v${Config.version}`))
logger.info(`${chalk.cyan.italic('仓库地址')} ${chalk.yellowBright.underline('https://github.com/hanhan258/hanhan-plugin')}`)
logger.info(`${chalk.redBright.bold('********************[')}${chalk.cyan.bold('///^///')}${chalk.redBright.bold(']********************')}`)
export { apps }
3 changes: 2 additions & 1 deletion utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const defaultConfig = {
sysecho0: '30000ms erorr',
sysgqjt: 1,
gdkey: '',
studyGroups: ''
studyGroups: '',
version: '1.2.1'
}
const _path = process.cwd()
let config = {}
Expand Down

0 comments on commit 2c8fa30

Please sign in to comment.