feat: 群聊上下文记录功能beta

This commit is contained in:
ikechan8370 2023-03-26 18:40:12 +08:00
parent d8999c77e6
commit 6653188a8f
5 changed files with 121 additions and 36 deletions

View file

@ -221,6 +221,16 @@ export function mkdirs (dirname) {
}
}
export function formatDate (date) {
const year = date.getFullYear()
const month = date.getMonth() + 1 // Note that getMonth() returns a zero-based index
const day = date.getDate()
const hour = date.getHours()
const minute = date.getMinutes()
const formattedDate = `${year}${month}${day}${hour}:${minute}`
return formattedDate
}
export async function getMasterQQ () {
return (await import('../../../lib/config/config.js')).default.masterQQ
}