mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修改日志输出以及体力时间bug
This commit is contained in:
parent
6426468ff9
commit
02a86ca345
@ -33,7 +33,6 @@ export class atlas extends plugin {
|
||||
render
|
||||
})
|
||||
if (ret === true) {
|
||||
console.log('ret true')
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ export async function Note(e, {
|
||||
}
|
||||
val.percentage = ((val.dq_time / 60 / 60 * 1 / time_cha) * 100 / 10).toFixed(0) * 10;
|
||||
let remainedDate = new Date(val.remained_time);
|
||||
val.remained_time = moment(remainedDate).format("hh:mm");
|
||||
val.remained_time = moment(remainedDate).format("HH:mm");
|
||||
let Time_day = await dateTime_(remainedDate)
|
||||
if (moment(remainedDate).format("DD") != nowDay) {
|
||||
val.remained_mb2 = "明天" + Time_day + moment(remainedDate).format("hh:mm");
|
||||
|
6
index.js
6
index.js
@ -11,11 +11,11 @@ let index = {
|
||||
}
|
||||
if (isV3) {
|
||||
index = await Data.importModule('/plugins/xiaoyao-cvs-plugin/adapter', 'index.js')
|
||||
console.log(index)
|
||||
}
|
||||
export const atlas = index.atlas || {}
|
||||
|
||||
console.log(`图鉴插件${currentVersion}初始化~`)
|
||||
Bot.logger.info(`--------------------------`)
|
||||
Bot.logger.info(`图鉴插件${currentVersion}初始化~`)
|
||||
Bot.logger.info(`--------------------------`)
|
||||
|
||||
setTimeout(async function() {
|
||||
let msgStr = await redis.get('xiaoyao:restart-msg')
|
||||
|
Loading…
Reference in New Issue
Block a user