- 修正start会被记录的bug

This commit is contained in:
yshtcn 2023-09-25 20:30:55 +08:00
parent 907a313368
commit c1114e3b43

View File

@ -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)