mirror of
https://github.com/yshtcn/DiaryAssistant_bot.git
synced 2025-12-11 16:50:24 +08:00
- 修改菜单顺序以提高使用体验
This commit is contained in:
parent
bb345dde93
commit
21137360d5
@ -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异常
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user