Skip to content

Commit

Permalink
fix: 删除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
yusheng929 committed Aug 29, 2024
1 parent b8ec118 commit 9f27d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/State/BotState.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export default async function getBotState (e) {
const avatarUrl = (bot.getAvatarUrl(uin)) ?? (Number(uin) ? `https://q1.qlogo.cn/g?b=qq&s=0&nk=${uin}` : 'default')
const avatar = await getAvatarColor(avatarUrl)

const platform = version?.version ?? '未知'
const platform = version.version ?? '未知'

const messageCount = await getMessageCount(bot)

const countContacts = await getCountContacts(bot)

let startTime = bot?.stat?.start_time || bot.adapter?.start_time || Math.floor(Date.now() / 1000)
let startTime = bot.adapter?.start_time || Math.floor(Date.now() / 1000)
if (startTime > 999999999) {
startTime = Math.floor(startTime / 1000)
}
Expand Down

0 comments on commit 9f27d0c

Please sign in to comment.