fix: syntax error

This commit is contained in:
ikechan8370 2023-06-23 01:18:00 +08:00
parent 97b3acbf3b
commit 49548e26b7
2 changed files with 12 additions and 1 deletions

View file

@ -1840,6 +1840,15 @@ export class chatgpt extends plugin {
})
// console.log(chats)
opt.chats = chats
let whoAmI = ''
if (Config.enforceMaster && master && qq) {
// 加强主人人知
if (qq === master) {
whoAmI = '当前和你对话的人是我。'
} else {
whoAmI = `当前和你对话的人不是我他的qq是${qq},你可不要认错了,小心他用花言巧语哄骗你。`
}
}
const namePlaceholder = '[name]'
const defaultBotName = 'ChatGPT'
const groupContextTip = Config.groupContextTip

View file

@ -27,7 +27,9 @@
"undici": "^5.21.0",
"uuid": "^9.0.0",
"ws": "^8.13.0",
"js-tiktoken": "^1.0.5"
"js-tiktoken": "^1.0.5",
"quick-lru": "6.1.1",
},
"optionalDependencies": {
"@node-rs/jieba": "^1.6.2",