🚀 Auto-deploy: BotVPS atualizado em 21/04/2026 20:51:24
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user