From 947bae8e26bc3acf3001b545927d175218fada75 Mon Sep 17 00:00:00 2001 From: 26751 <2675174581@qq.com> Date: Fri, 7 Apr 2023 16:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4tips-customs-template.py?= =?UTF-8?q?=E4=B8=AD=E4=B8=8D=E5=BF=85=E8=A6=81=E6=B3=A8=E9=87=8A=20Signed?= =?UTF-8?q?-off-by:=2026751=20<2675174581@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tips-custom-template.py | 43 ++++++++++++++--------------------------- 1 file changed, 14 insertions(+), 29 deletions(-) diff --git a/tips-custom-template.py b/tips-custom-template.py index f2ebe57c..39948ff7 100644 --- a/tips-custom-template.py +++ b/tips-custom-template.py @@ -1,24 +1,16 @@ import config +# ---------------------------------------------自定义提示语--------------------------------------------- -# ---------------------------------------------花里胡哨参数--------------------------------------------- -# ---原config.py开始-- - -# 消息处理出错时向用户发送的提示信息,仅当hide_exce_info_to_user为True时生效 +# 消息处理出错时向用户发送的提示信息,仅当config.py中hide_exce_info_to_user为True时生效 # 设置为空字符串时,不发送提示信息 -# config.py,line:232 -# pkg/qqbot/message.py,line:19 -alter_tip_message = '出错了,请稍后再试' +alter_tip_message = '[bot]err:出错了,请稍后再试' -# drop策略时,超过限速均值时,丢弃的对话的提示信息,仅当rate_limitation_strategy为"drop"时生效 +# drop策略时,超过限速均值时,丢弃的对话的提示信息,仅当config.py中rate_limitation_strategy为"drop"时生效 # 若设置为空字符串,则不发送提示信息 -# config.py,line:265 -# pkg/qqbot/process.py,line:122 rate_limit_drop_tip = "本分钟对话次数超过限速次数,此对话被丢弃" # 指令!help帮助消息 -# config.py,line:279 -# pkg/qqbot/process.py,line:122 -help_message = """【可自定义】 +help_message = """ 此机器人通过调用OpenAI的GPT-3大型语言模型生成回复,不具有情感。 你可以用自然语言与其交流,回复的消息中[GPT]开头的为模型生成的语言,[bot]开头的为程序提示。 了解此项目请找QQ 1010553892 联系作者 @@ -28,23 +20,16 @@ help_message = """【可自定义】 指令帮助信息请查看: https://github.com/RockChinQ/QChatGPT/wiki/%E5%8A%9F%E8%83%BD%E4%BD%BF%E7%94%A8#%E6%9C%BA%E5%99%A8%E4%BA%BA%E6%8C%87%E4%BB%A4""".format( config.session_expire_time // 60) -# ---原config.py结束-- - -# QChatGPT/pkg/qqbot/manager.py -# 私聊消息超时提示,line:271 -reply_message = "私聊请求超时" -# 群聊消息超时提示,line:310 -replys_message = "群聊请求超时" +# 私聊消息超时提示 +reply_message = "[bot]err:请求超时" +# 群聊消息超时提示 +replys_message = "[bot]err:请求超时" # 指令权限不足/无效提示 -# QChatGPT/pkg/qqbot/command.py,line:57 -# 更改代码 -# QChatGPT/pkg/qqbot/cmds/mgr.py -# line:266,279 -command_admin_message = "权限不足: " -command_err_message = "指令执行出错:" +command_admin_message = "[bot]err:权限不足: " +# 指令无效提示 +command_err_message = "[bot]err:指令执行出错:" # 会话重置提示 -# pkg/qqbot/cmds/session/reset.py,line:25,31 -command_reset_message = "[bot]会话已重置" -command_reset_name_message = "[bot]会话已重置,使用场景预设:" +command_reset_message = "[bot]:会话已重置" +command_reset_name_message = "[bot]:会话已重置,使用场景预设:"