chore: update version to 145.3.0

This commit is contained in:
Kwaroran
2025-01-02 03:02:54 +09:00
parent b80f15f885
commit 866996ba1e
5 changed files with 19 additions and 38 deletions

View File

@@ -38,38 +38,7 @@
const onClick = () => {
if(specialDay === 'newYear'){
const db = DBState.db
let messages = 0
let chats = 0
if(db.statistics?.newYear2024){
const markdown = `
# Happy New Year!
You've had:
- Sent over ${db.statistics.newYear2024.messages.toLocaleString()} messages
- Played over ${db.statistics.newYear2024.chats.toLocaleString()} chats
*Statistics are approximate*
`
alertMd(markdown)
return
}
db.characters.map((c) => {
c.chats.map((chat) => {
messages += chat.message.length
})
chats += c.chats.length
})
const markdown = `
# Happy New Year!
You've had:
- Sent over ${messages.toLocaleString()} messages
- Played over ${chats.toLocaleString()} chats
*Statistics are approximate*
`
db.statistics.newYear2024 = {
messages,
chats
}
alertMd(markdown)
}
}