- 修改菜单顺序以提高使用体验

This commit is contained in:
yshtcn 2024-04-26 17:10:51 +08:00
parent bb345dde93
commit 21137360d5

View File

@ -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异常