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