support Claude and Yi handlers to extract and enrich text with URLs

This commit is contained in:
F4ria
2024-04-15 23:20:35 +08:00
parent bf885ef471
commit f804005f5e
4 changed files with 39 additions and 29 deletions

View File

@ -45,6 +45,7 @@ def yi_handler(message: Message, bot: TeleBot) -> None:
if m[:4].lower() == "new ":
m = m[4:].strip()
player_message.clear()
m = enrich_text_with_urls(m)
who = "Yi"
# show something, make it more responsible