From 21137360d5d2b2329f3664e967d5a4c9fa01e182 Mon Sep 17 00:00:00 2001 From: yshtcn Date: Fri, 26 Apr 2024 17:10:51 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E4=BB=A5=E6=8F=90=E9=AB=98=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DiaryAssistant.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/DiaryAssistant.py b/DiaryAssistant.py index 7db75b6..4c79f1a 100644 --- a/DiaryAssistant.py +++ b/DiaryAssistant.py @@ -103,15 +103,15 @@ def set_bot_commands(): try: set_commands_url = URL + "setMyCommands" commands = [ - {"command": "/start", "description": "首次使用"}, - # {"command": "/prompt", "description": "GPT分次对话提示语"}, - {"command": "/stopprompt", "description": "GPT分次结束对话提示语"}, - {"command": "/done", "description": "结束记录"}, - {"command": "/check", "description": "检查记录"}, - {"command": "/removelast", "description": "删除最后记录"}, {"command": "/today", "description": "发送今天的日期"}, {"command": "/nowstart", "description": "发送现在的时间作为开始时间"}, - {"command": "/nowend", "description": "发送现在的时间作为结束时间"} + {"command": "/nowend", "description": "发送现在的时间作为结束时间"}, + {"command": "/removelast", "description": "删除最后记录"}, + {"command": "/check", "description": "检查记录"}, + {"command": "/done", "description": "结束记录"}, + # {"command": "/prompt", "description": "GPT分次对话提示语"}, + {"command": "/stopprompt", "description": "GPT分次结束对话提示语"}, + {"command": "/start", "description": "首次使用"} ] response = requests.post(set_commands_url, json={"commands": commands}, proxies=proxies) response.raise_for_status() # 如果响应状态码不是200,引发HTTPError异常