Commit Graph

6 Commits

Author SHA1 Message Date
7953a56501 Merge: Complete merge of remote changes, including user's requested additions.
This commit completes the merge process, incorporating remote changes that conflicted with local modifications. It also stages and commits all remaining modified and untracked files as per the user's instruction to 'upload everything without exception'.
2026-02-08 16:33:43 -06:00
bc77082c20 feat: Implement Discord translation feature with ephemeral messages and refined content filtering
This commit introduces a comprehensive message translation system for the Discord bot, featuring:
- Interactive language selection buttons for each translatable message.
- Ephemeral translation responses visible only to the requesting user.
- Robust filtering to prevent translation buttons for messages consisting solely of emojis, stickers, GIFs, or other non-translatable content.
- Preservation of non-textual elements (images, video thumbnails, stickers) alongside translated text in embeds.
- Full compatibility with DiscordPHP v7, addressing various API usage and error handling specifics (e.g.,  then , correct handling of null message properties,  intent).

Additionally, this commit resolves an incompatibility introduced in the shared  class, ensuring that the Telegram bot's translation functionality remains fully operational by correctly parsing  return values across both platforms.

The following files were modified:
- : Main Discord bot logic for message handling, button generation, and interaction processing.
- : Adjusted  to return full API response including confidence score.
- : Updated environment variable loading and added new constants for service URLs and tokens.
- : Updated constructor to include  for absolute URL generation.
- : Adjusted all calls to  to correctly extract language codes from the new array return format, resolving Telegram bot's translation issues.
2026-02-08 16:28:17 -06:00
26414094d4 Solución crítica: Reconexión automática bot Discord y sistema de health check
- Implementa heartbeat cada 30 segundos para mantener conexión WebSocket activa
- Agrega manejo de eventos de conexión/desconexión/reconexión
- Sistema de health check cada 2 minutos para verificar estado del bot
- Configuración mejorada de timeouts y reconexión automática
- Soluciona problema de bot no responde después de períodos de inactividad
2026-02-07 20:09:16 -06:00
7af0e95e0b Mejora traducción bot Discord: detección de imágenes/videos y preservación de emojis
- Evita mostrar botones de traducción en mensajes con solo imágenes/videos
- Detecta y traduce captions de imágenes/videos
- Preserva emojis, menciones y elementos de Discord durante traducción
- Soluciona problema de placeholders en emojis Unicode estándar
2026-02-07 20:03:56 -06:00
d1ec6bed5c feat: Mejorar bot Discord con traducción interactiva efímera
- Cambia traducción automática por botones interactivos con banderas
- Implementa traducciones privadas (solo visibles para usuario que presiona)
- Agrega opción de caché interactivo en script de deploy
- Simplifica mensaje de selección de idiomas
- Corrige errores de DatabaseConnection duplicada
2026-02-06 17:54:34 -06:00
4c48c279de Commit inicial con archivos existentes 2026-01-17 16:14:00 -06:00