From c1114e3b436223a3cbb3e020a7a2d14a51fac615 Mon Sep 17 00:00:00 2001 From: yshtcn Date: Mon, 25 Sep 2023 20:30:55 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E6=AD=A3start=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Diary Assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Diary Assistant.py b/Diary Assistant.py index 1fecde5..66c055a 100644 --- a/Diary Assistant.py +++ b/Diary Assistant.py @@ -188,7 +188,7 @@ def main(): if message_text.lower() == "/start": send_message(chat_id_str, f"#使用帮助\n---\n欢迎使日记助手,你可以直接开始发送要记录的内容。以下是机器人可用指令: \n/check 查看已记录的内容,并继续记录。\n /done 记录完毕,把记录发送给您,并开启新的记录。\n /removelast 删除最后一条信息。(注意:直接编辑信息并不会修改错误的记录!)") blacklist.append(unique_id) - if message_text.lower() == "/tips": + elif message_text.lower() == "/tips": current_date = datetime.now().strftime("%Y年%m月%d日") send_message(chat_id_str, f"#GPT提示词\n---\n```\nDear ChatGPT, 今天是{current_date}. 我希望你能成为我的日记助手。请注意: 在这一天里,无论我输入什么内容,你都只需要回复: \"####\" . 只有当我输入\"Hi ChatGPT, 让我们结束今天的日记\"时,你才开始执行我规定的任务.\n```") blacklist.append(unique_id)