From 73166f0809cde9b11d6ea1cc62e9fef446adb9d1 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sun, 18 Dec 2022 10:55:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=AE=BE=E7=BD=AE=E7=8B=AC=E7=AB=8B=E7=BB=98=E7=94=BB?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/qqbot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index b62ef20a4..5cf2182fb 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -143,7 +143,7 @@ def initBot(chatgpt_inst): cfg = yaml.safe_load(ymlfile) try: - if 'uniqueSessionMode' in cfg and cfg['qqbot']['uniqueSessionMode'] == 'true': + if 'uniqueSessionMode' in cfg and cfg['uniqueSessionMode']: uniqueSession = True else: uniqueSession = False