286 Commits
Author SHA1 Message Date
Mow910andClaude Sonnet 5 2cf0340a26 Retire le fichier "instance" du suivi git
Ce fichier entrait en conflit avec le dossier instance/ (base SQLite +
config persistante), gitignoré, et causait "unable to open database
file" au démarrage après un git pull sur les déploiements existants.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-17 19:07:14 +02:00
Mow910 89845b3248 Add Steam free games feed to FreeLoot 2026-08-17 19:01:56 +02:00
Mow910 c962f57031 file missing 2026-08-17 14:46:35 +02:00
Mow910 3da5ee1dab Recover persisted auto rooms during voice events 2026-08-16 22:27:06 +02:00
Mow910 7d57b82b29 Harden auto room lifecycle and persistence 2026-08-16 22:18:57 +02:00
Mow910 ae6d491c44 Prevent repeated rules acceptance role changes 2026-08-16 22:01:11 +02:00
Mow910 8eb6917337 Improve YouTube history sorting and filters 2026-08-16 21:55:18 +02:00
Mow910 e22f7b2d0f Notify only the latest YouTube video 2026-08-16 21:28:25 +02:00
Mow910 7fcb196bf3 Fix YouTube notification delivery 2026-08-16 21:13:40 +02:00
Mow910 e23f0a0385 Refactor rules acknowledgment logic and update role assignment behavior
- Removed the `on_presentation_message` function to streamline role assignment processes.
- Updated the `assign_rules_arrival_on_join` function to clarify its purpose, focusing solely on assigning the arrival role upon member join.
- Adjusted success message generation for role validation to enhance clarity and user experience.
- Modified configuration settings and web templates to reflect the updated role assignment behavior, ensuring accurate user guidance.
2026-05-04 13:38:07 +02:00
Mow910 4e6f8bec3a Add automatic role assignment on member join for rules acknowledgment
- Introduced a new function `assign_rules_arrival_on_join` to assign the arrival role to members upon joining, based on configuration settings.
- Updated the `on_member_join` event to call the new function, enhancing the user experience by providing immediate role assignment.
- Modified configuration options in the web application to allow enabling or disabling this feature.
- Updated the configurations template to reflect the new role assignment behavior, ensuring clarity for users.
2026-05-04 13:31:11 +02:00
Mow910 8634f946a1 Refactor rules acknowledgment handling in Discord bot
- Introduced a new helper function `_rules_ack_success_text` to streamline the success message generation for role acknowledgment.
- Enhanced error handling in `handle_rules_accept` to ensure proper member fetching and context validation.
- Simplified the success message response logic, improving code readability and maintainability.
2026-05-04 13:27:32 +02:00
Mow910 69d8167581 Implement rules acknowledgment feature in Discord bot
- Added a new module for managing rules acknowledgment, including a persistent button for users to accept the rules.
- Updated the database schema to change the `value` column type in the `Configuration` model to `TEXT` for better handling of longer rule descriptions.
- Enhanced the web application to include configuration options for rules acknowledgment, allowing customization of the rules message and button label.
- Integrated the rules acknowledgment feature into the Discord bot, enabling automatic role assignment upon acceptance and handling of presentation messages for validated roles.
- Updated the configurations template to support new settings related to rules acknowledgment.
2026-05-04 13:17:04 +02:00
Mow910 e72647612d Update moderation command permissions in Discord bot
- Changed permissions for the `/ban`, `/kick`, and `/timeout` commands to require `manage_messages` instead of their previous specific permissions.
- Updated context menu commands for banning, kicking, and timing out authors to align with the new permission structure, ensuring consistent moderation capabilities across commands.
2026-05-03 19:01:08 +02:00
Mow910 0c3048660a Remove deprecated context menu command for author inspection in moderation module
- Eliminated the `Inspecter l'auteur` context menu command due to Discord's limitation on global message commands.
- Updated related documentation to reflect the removal of this command, ensuring clarity for users regarding available moderation functionalities.
2026-05-03 18:44:13 +02:00
Mow910 9d840e9bde Enhance moderation functionality in Discord bot
- Added new moderation commands: `/warn` and `/inspect`, improving user interaction for warnings and user inspections.
- Refactored the `send_warning_confirmation` function to streamline the warning process and improve message formatting.
- Updated command handling to ensure proper user feedback and error handling during moderation actions.
- Improved the overall structure of moderation-related functions for better maintainability.
2026-05-03 18:22:35 +02:00
Mow910 769251df0d Enhance moderation commands and ProtonDB integration in Discord bot
- Introduced a new slash command `/say` for sending messages in specific channels, improving moderation capabilities.
- Updated the ProtonDB command to include an alias `/pdb`, streamlining user interaction.
- Refactored command descriptions and improved error handling for better user experience.
2026-05-03 18:05:50 +02:00
Mow910 f901db1a7d Implement ProtonDB command integration in Discord bot
- Replaced the deprecated ProtonDB command handling with a new slash command and context menu for improved user experience.
- Updated moderation command descriptions to reflect the new ProtonDB functionalities.
- Introduced a new module for ProtonDB interactions, enhancing the bot's capability to search and display game compatibility information.
2026-05-03 14:48:16 +02:00
Mow910 2b8b725bbb Refactor moderation commands in Discord bot
- Removed deprecated timeout and ban command handling from the message processing logic.
- Added new moderation slash commands for ban, kick, and timeout functionalities.
- Updated the command tree initialization to include the new moderation commands for better organization and usability.
2026-05-03 14:36:44 +02:00
Mow910 3e57accb11 fix: update message formatting in Humble Bundle notification
- Removed the mention of "@here" from the notification message to streamline the announcement format.
- Ensured the message remains clear and informative for users regarding the available game bundle.
2026-05-03 14:25:08 +02:00
Mow910andCursor ecf59d645e fix: ne pas effacer les rôles modération si le formulaire n’inclut pas la liste (bot pas prêt)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-03 14:20:18 +02:00
Mow910 ec296dd226 Refactor Discord member statistics handling and remove unused components
- Removed the `guild_member_stats` table and related logic from the database and models, as well as the associated webapp routes and templates.
- Cleaned up the Discord bot initialization by eliminating unused imports and functions related to member statistics.
- Updated logging configuration in `run-web.py` to streamline the startup process and improve thread management.
2026-03-25 23:13:14 +01:00
Mow910 b51430e2b2 Add rate limit logging and enhance Discord bot initialization
- Introduced a new module `rate_limit_logging.py` to log HTTP headers for Discord API rate limits (HTTP 429).
- Updated the Discord bot initialization in `__init__.py` to include a custom HTTP trace configuration for better rate limit handling.
- Adjusted logging levels in `run-web.py` to reduce verbosity for rate limit headers.
2026-03-25 23:10:02 +01:00
Mow910 3c7d7f4e80 Enhance logging configuration and thread management in run-web.py
- Added logic to prevent duplicate logging from Discord-related modules by clearing their handlers and ensuring propagation.
- Refactored thread management to start the Discord bot first, followed by the web server and Twitch bot with a delay to avoid concurrency issues at startup.
2026-03-25 23:03:32 +01:00
Mow910 10923f58c3 patch 2026-03-25 22:58:06 +01:00
Mow910 855c13c183 Add guild_member_stats table and update permissions for Discord members
- Created a new table `guild_member_stats` to track message counts and voice activity for users in each guild.
- Updated the database schema and models to include the new table.
- Added a new permission entry for `discord_members` in the `webapp_page_permission` table.
- Enhanced the webapp to include links and settings for managing Discord member statistics.
2026-03-25 22:52:32 +01:00
Mow910 bb92c3dd92 Enhance shoutbox functionality and UI in popout template
- Added buttons to adjust font size and toggle sound notifications in the shoutbox.
- Updated sound notification logic to improve user experience when new messages arrive.
- Refactored font size handling to persist user preferences using local storage.
- Improved layout for better responsiveness and usability across devices.
2026-03-25 22:30:58 +01:00
Mow910 c4dab1d873 Refactor Twitch moderation template for improved layout and responsiveness
- Adjusted the layout of the Twitch moderation template to enhance visual clarity and responsiveness, including changes to element sizes and spacing.
- Updated the display of live status and link filter sections for a more compact and streamlined appearance.
- Improved text sizes and alignment for better readability across different devices.
2026-03-25 22:09:40 +01:00
Mow910 9cb4186bb8 Add stream uptime formatting to Twitch moderation and enhance template layout
- Introduced a new helper function `_format_stream_uptime` to calculate and format the stream uptime based on the start time.
- Updated the Twitch moderation route to include the formatted stream uptime in the rendered template.
- Enhanced the Twitch moderation template layout for better responsiveness and visual clarity, including adjustments to the live status display and overall structure.
2026-03-25 22:00:29 +01:00
Mow910 f90c8eed81 Update ProtonDB template to include Twitch configuration option for enabling features
- Modified the conditional check in the ProtonDB template to allow for enabling features based on both ProtonDB and Twitch settings.
- This change enhances the flexibility of the configuration for users integrating ProtonDB with Twitch.
2026-03-24 00:31:17 +01:00
Mow910 fc274b47ae Implement cooldown feature for ProtonDB command in TwitchBot and update configuration options in webapp
- Added a cooldown mechanism to the ProtonDB command to prevent spamming.
- Introduced a new configuration option for setting the cooldown duration in seconds.
- Updated the ProtonDB template to include the new cooldown setting for Twitch users.
2026-03-24 00:21:02 +01:00
Mow910 a93d5cda70 Refactor ProtonDB command execution in TwitchBot for improved context handling
- Introduced a helper function `_search` to encapsulate the ProtonDB search logic within the app context.
- Updated the command execution to use the new helper function, enhancing code clarity and maintainability.
2026-03-24 00:02:49 +01:00
Mow910 c9f27bf09e Add ProtonDB command support for Twitch and update configuration options
- Introduced `cmd_pdb` command in TwitchBot for ProtonDB integration.
- Registered new command for Twitch and updated chat command list.
- Added configuration options for enabling ProtonDB on Twitch in the webapp.
- Updated ProtonDB template to include new settings and permissions for Twitch users.
2026-03-24 00:00:05 +01:00
Mow910 0453af255f Refactor Twitch moderation template layout by adjusting grid column spans for improved responsiveness. Removed specific column span classes to allow for a more flexible design, enhancing the overall user experience on various screen sizes. 2026-03-18 20:49:37 +01:00
Mow910 26c9d0dc06 back 2026-03-18 20:47:44 +01:00
Mow910 c265149357 Enhance Twitch moderation template layout by introducing a new responsive design for larger screens. Added a 'twitch-wide-layout' class to improve overall layout and grid structure, ensuring better usability on wider displays. 2026-03-18 20:45:38 +01:00
Mow910 47bc7146de Update Twitch moderation template to improve grid responsiveness by changing column classes to 2xl and adjusting heights. Also, increase default shoutbox font size for better readability. 2026-03-18 20:42:26 +01:00
Mow910 f4c9fa2138 Update Twitch moderation template layout to enhance responsiveness by adjusting grid classes and increasing column heights. This improves the overall user experience and visual consistency across different screen sizes. 2026-03-18 20:40:08 +01:00
Mow910 245aaf9c6d Enhance TwitchBot connection handling by implementing a reconnection strategy that restarts the session after 90 seconds of disconnection. Update logging messages for clarity. Modify Twitch moderation template layout for improved responsiveness and user experience, adjusting grid classes and simplifying live status display. 2026-03-18 20:37:29 +01:00
Mow910 6ef0b6856e Enhance Twitch and Discord bot functionality by updating BOT_STATUS management. Added tracking for Twitch message timestamps and messages per minute, improved connection handling, and refined live status updates. Updated webapp to reflect new status attributes and modified Twitch moderation template for better chat message handling. 2026-03-18 20:31:40 +01:00
Mow910 af86ba9a8e Refactor TwitchBot event loop management by replacing get_event_loop with get_running_loop for improved compatibility with asynchronous operations. This change enhances the bot's readiness handling and ensures consistent event loop usage. 2026-03-10 20:11:13 +01:00
Mow910 399b7c42fd Updated Twitch moderation template to use JSON formatting for lastLogTimestamp, shoutboxCurrentUser, and _streamStartedAt variables, enhancing data handling and security in JavaScript context. 2026-03-10 20:07:39 +01:00
Mow910 ce5f60a2d7 Enhance TwitchBot message sending by integrating event loop management. Updated send_twitch_message to utilize the existing event loop for asynchronous message sending, improving reliability and error handling. Added timeout handling for message sending operations. 2026-03-10 19:59:44 +01:00
Mow910 1bf24d299c Updated the current username variable in the Twitch moderation template to use JSON formatting for improved data handling and security. This change enhances the integration of user data within the JavaScript context. 2026-03-10 19:36:55 +01:00
Mow910 c8c1e0c283 Refactor chat message deletion methods in moderation and link filter modules. Updated to use delete_chat_message instead of delete_chat_messages for improved clarity and consistency in message handling. 2026-03-10 18:45:55 +01:00
Mow910 d7b78ec1c4 Ajout du nom d'utilisateur actuel dans les messages du bot dans la shoutbox, améliorant ainsi la personnalisation et la clarté des interactions. Mise à jour de l'affichage des messages pour inclure le nom d'utilisateur à côté de l'étiquette "Bot". 2026-03-10 18:29:31 +01:00
Mow910 6d364f28f1 Ajout de boutons de modération dans la shoutbox pour les modérateurs Twitch, permettant de supprimer des messages, de mettre en timeout ou de bannir des utilisateurs directement depuis l'interface. Mise à jour de la logique de journalisation pour inclure le nom de l'administrateur au lieu de "WebApp". Amélioration de l'expérience utilisateur avec des prompts pour la durée et la raison des actions de modération. 2026-03-10 18:25:55 +01:00
Mow910 589cb1f428 Ajout d'un bouton de notification pour les nouveaux messages dans la shoutbox, permettant aux modérateurs Twitch de voir facilement les messages non lus. Mise à jour de la logique de défilement automatique et gestion des compteurs de messages non lus. Amélioration de l'interface utilisateur pour une meilleure expérience de modération. 2026-03-10 18:02:55 +01:00
Mow910 c44e624f53 Amélioration de la gestion de l'historique des vidéos YouTube. Ajout de l'enregistrement de toutes les vidéos détectées dans l'historique, tout en simplifiant la logique de notification pour éviter les doublons. Mise à jour des conditions de notification pour garantir que les vidéos sont correctement enregistrées et notifiées. 2026-03-09 20:20:28 +01:00
Mow910 2e83096550 Ajout d'un historique des vidéos YouTube dans la base de données et l'interface utilisateur. Création de la table youtube_video_history pour stocker les vidéos détectées, avec des fonctionnalités pour afficher l'historique et forcer l'envoi de notifications Discord. Mise à jour des modèles, des routes et des templates pour intégrer cette nouvelle fonctionnalité. 2026-03-09 18:31:27 +01:00