mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-07-06 06:47:14 +08:00
feat: if the message starts with "new ", clear the player's history and start a new chat
This commit is contained in:
@ -45,6 +45,9 @@ def claude_handler(message: Message, bot: TeleBot) -> None:
|
||||
)
|
||||
player_message.clear()
|
||||
return
|
||||
if m[:4].lower() == "new ":
|
||||
m = m[4:].strip()
|
||||
player_message.clear()
|
||||
|
||||
who = "Claude"
|
||||
# show something, make it more responsible
|
||||
@ -103,6 +106,9 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
|
||||
)
|
||||
player_message.clear()
|
||||
return
|
||||
if m[:4].lower() == "new ":
|
||||
m = m[4:].strip()
|
||||
player_message.clear()
|
||||
|
||||
who = "Claude Pro"
|
||||
# show something, make it more responsible
|
||||
|
Reference in New Issue
Block a user