mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: time
This commit is contained in:
parent
7be0e61e14
commit
3318ac04d8
3 changed files with 65 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { getBotFramework } from './bot.js'
|
||||
import ChatGPTConfig from '../config/config.js'
|
||||
import {formatTimeToBeiJing} from './common.js'
|
||||
|
||||
export class GroupContextCollector {
|
||||
/**
|
||||
|
|
@ -132,7 +133,7 @@ export async function getGroupContextPrompt (e, length) {
|
|||
// eslint-disable-next-line no-template-curly-in-string
|
||||
.replace('${message.sender.title}', sender.title || '-')
|
||||
// eslint-disable-next-line no-template-curly-in-string
|
||||
.replace('${message.time}', chat.time || '-')
|
||||
.replace('${message.time}', formatTimeToBeiJing(chat.time) || '-')
|
||||
// eslint-disable-next-line no-template-curly-in-string
|
||||
.replace('${message.messageId}', chat.messageId || '-')
|
||||
// eslint-disable-next-line no-template-curly-in-string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue