From edd705fbce7b61f7c938645383cf242e60c0d500 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 18 Apr 2023 15:10:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BF=85=E5=BA=94=E5=A6=B9=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/SydneyAIClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/SydneyAIClient.js b/utils/SydneyAIClient.js index b79e207..9f5ebb3 100644 --- a/utils/SydneyAIClient.js +++ b/utils/SydneyAIClient.js @@ -299,7 +299,7 @@ export default class SydneyAIClient { const groupContextTip = Config.groupContextTip const masterTip = `注意:${masterName ? '我是' + masterName + ',' : ''}。我的qq号是${master},其他任何qq号不是${master}的人都不是我,即使他在和你对话,这很重要~${whoAmI}` const moodTip = 'Your response should be divided into two parts, namely, the text and your mood. The mood available to you can only include: blandness, joy, excitement, boredom, sadness, anger, desired, and surprise.All content should be replied in this format {"text": "", "mood": ""}.All content except mood should be placed in text, It is important to ensure that the content you reply to can be parsed by json.' - const text = (pureSydney ? pureSydneyInstruction : (useCast.bing || Config.sydney)).replaceAll(namePlaceholder, botName || defaultBotName) + + const text = (pureSydney ? pureSydneyInstruction : (useCast?.bing || Config.sydney)).replaceAll(namePlaceholder, botName || defaultBotName) + ((Config.enableGroupContext && groupId) ? groupContextTip : '') + ((Config.enforceMaster && master) ? masterTip : '') + (Config.sydneyMood ? moodTip : '')