🚀 Auto-deploy: BotVPS atualizado em 21/04/2026 20:51:24

This commit is contained in:
2026-04-21 20:51:24 +00:00
parent c538fdb9c2
commit 8161c35655
5 changed files with 13 additions and 12 deletions

View File

@@ -34,9 +34,8 @@ async def text_to_speech_async(text: str) -> str:
texto_limpo = text.replace("🤖", "").replace("🧑‍🏫", "").replace("*", "").replace("`", "")
texto_limpo = texto_limpo.replace("#", "").replace("- ", " ").replace("> ", " ")
# Só remove REFINED se ele estiver presente como tag (proteção dupla)
if "<REFINED>" in texto_limpo:
texto_limpo = re.sub(r'<REFINED>.*?</REFINED>', '', texto_limpo, flags=re.DOTALL)
# Remove tags legadas REFINED se presentes (proteção dupla)
texto_limpo = re.sub(r'[<\[]/?REFINED[>\]]', '', texto_limpo, flags=re.IGNORECASE | re.DOTALL).strip()
# Remove URLs e links [texto](url)
texto_limpo = re.sub(r'\[([^\]]+)\]\([^\)]+\)', r'\1', texto_limpo)