From a1253cc2410e81bf0dc0a451c8ba83dd162cac49 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Tue, 14 Mar 2023 11:37:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=8F=E6=84=9F=E8=AF=8D=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/qqbot/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index c6b3db5b2..2d0494a30 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -287,7 +287,7 @@ def initBot(cfg, prov): if 'time' in cfg['limit']: frequency_time = cfg['limit']['time'] - announcement += '[QQChannelChatGPT项目]\n所有回答与腾讯公司无关。出现问题请前往[GPT机器人]官方频道\n\n' + announcement += '[QQChannelChatGPT项目,觉得好用的话欢迎前往Github给Star]\n所有回答与腾讯公司无关。出现问题请前往[GPT机器人]官方频道\n\n' # 得到公告配置 if 'notice' in cfg: print('[System] 公告配置: '+cfg['notice']) @@ -656,7 +656,7 @@ def oper_msg(message, at=False, msg_ref = None): # 过滤不合适的词 judged_res = chatgpt_res for i in uw.unfit_words: - res = re.sub(i, "***", judged_res) + judged_res = re.sub(i, "***", judged_res) # 百度内容审核服务二次审核 if baidu_judge != None: check, msg = baidu_judge.judge(judged_res)