mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
feat: 群聊上下文记录功能beta
This commit is contained in:
parent
d8999c77e6
commit
6653188a8f
5 changed files with 121 additions and 36 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue