Commit Graph

28 Commits

Author SHA1 Message Date
Arthur 0fb91e0172 fix(prefix): prevent multiple prefix usage like ++++ping (#1) 2026-04-11 15:01:47 +02:00
Puechberty Arthur 1f774628c2 Ajout du module permsmenu et intégration dans les commandes et interactions pour la gestion des permissions.
&& ajoute du readme
2026-04-10 22:43:37 +02:00
Puechberty Arthur 618e222759 add many game 2026-04-10 20:53:09 +02:00
Puechberty Arthur 9ea4914e42 add invite commands 2026-04-10 19:48:21 +02:00
Puechberty Arthur 65420838fb Ajout de la gestion des canaux de logs et amélioration de l'enregistrement des logs d'audit avec les identifiants de message. 2026-04-10 19:26:31 +02:00
Puechberty Arthur 6a22ea0631 Ajout de l'identifiant du message dans la fonction de gestion de mise à jour des messages et amélioration de l'enrichissement des logs pour les messages modifiés et supprimés. 2026-04-10 19:18:15 +02:00
Puechberty Arthur 6110da331d Ajout de la gestion des messages observés : implémentation des fonctions pour récupérer et mettre à jour les messages dans la base de données lors de la suppression et de la mise à jour des messages. 2026-04-10 19:11:30 +02:00
Puechberty Arthur dc07a10c9f add log events 2026-04-10 19:05:00 +02:00
Puechberty Arthur 4e02a25802 dossier events a été normalisé en “1 fichier = 1 événement” avec noms alignés sur l’événement 2026-04-10 18:14:09 +02:00
Puechberty Arthur 313ecc7d0c Refactor command handling and permissions management
- Updated examples formatting in SetpermCommand and LeaveSettingsCommand for consistency.
- Consolidated the handling of guild targets into a new utility file (servertarget.rs).
- Moved the del command logic to a new utility file (del.rs) for better organization.
- Enhanced the set command functionalities by creating a dedicated set.rs file, improving readability and maintainability.
- Removed deprecated servertarget.rs and del.rs files from the commands directory.
- Improved the help command structure for better readability and maintainability.
- Added new utility files for permissions and server target handling to streamline command processing.
2026-04-10 18:03:55 +02:00
Puechberty Arthur 00ae9cda11 netoyage et optimisation des commande pour que elle soit trier correctement 2026-04-10 17:57:12 +02:00
Puechberty Arthur 9a47588cdf netoyage des commands 2026-04-10 16:41:03 +02:00
Puechberty Arthur 1b5e51c428 chore(commands): reorganize command files by metadata categories 2026-04-10 15:25:21 +02:00
Puechberty Arthur 23dcc69977 feat(help): améliorer le contenu de la page d'aide avec des détails sur les permissions et les alias 2026-04-10 15:10:46 +02:00
Puechberty Arthur e0f40e9190 feat(moderation): add commands for anti-raid reset, mute role setting, spam overrides, strikes management, and timeout toggling
- Implemented `resetantiraide` command to reset anti-raid protections to default settings.
- Added `set_muterole` command to define the mute role when timeout mode is disabled.
- Created `spam` command to manage spam moderation channel overrides (allow, deny, reset).
- Developed `strikes` command to display and modify strike rules for various triggers.
- Introduced `timeout` command to toggle the use of Discord timeout for mutes.

feat(outils): add piconly command to manage photo-only channels

- Implemented `piconly` command to define or remove channels where only photos can be sent.
- Added functionality to enforce photo-only rules in designated channels.

feat(roles): add ancien and noderank commands for role management

- Created `ancien` command to set up a role for members after a specified delay.
- Implemented `noderank` command to manage protected roles that are not removed by derank actions.
2026-04-10 15:04:10 +02:00
Puechberty Arthur f945f3f378 feat: ajouter la gestion des commandes d'aide avec alias et améliorer l'affichage des informations de commande 2026-04-10 09:44:12 +02:00
Puechberty Arthur 999e555e0a feat: ajouter la gestion des interactions de composants pour la commande autoconfiglog et améliorer la création de salons de logs 2026-04-10 09:36:45 +02:00
Puechberty Arthur 421c87a441 feat: ajouter la gestion des boutons pour la commande viewlogs et améliorer le traitement des logs d'audit 2026-04-10 09:26:28 +02:00
Puechberty Arthur e28f9a364f feat: ajouter des statistiques de commandes dans l'aide et améliorer la gestion des catégories 2026-04-10 09:16:00 +02:00
Puechberty Arthur ce0a37b7e1 Remove summary fields from command specifications in various files for consistency and clarity. 2026-04-10 09:09:09 +02:00
Puechberty Arthur 3d89df5251 refactor: réorganiser les modules et améliorer la lisibilité du code 2026-04-10 09:02:29 +02:00
Puechberty Arthur 4d92be1ad5 feat: restrict commands from being used in DMs
- Added `allow_in_dm: false` to various moderation, utility, and role management commands to prevent their usage in direct messages.
- Updated the message event handler to check for the `allow_in_dm` flag and respond appropriately when a DM command is attempted.
2026-04-10 08:53:48 +02:00
Puechberty Arthur 82e6ed1ca6 feat: ajout des commandes rolemenu et slowmode avec gestion des interactions 2026-04-10 07:11:14 +02:00
Puechberty Arthur b6d8953c46 modify commands categories 2026-04-10 06:54:51 +02:00
Puechberty Arthur e1016e0af1 Refactor profile commands to improve status handling and embed responses
- Updated `handle_idle`, `handle_invisible`, `handle_online`, `handle_listen`, `handle_playto`, `handle_stream`, `handle_watch`, and `handle_remove_activity` functions to use a unified approach for setting bot status and sending embed messages.
- Removed dependency on `botconfig_common` and replaced it with direct database interactions for status management.
- Added new helper functions for logging and moderation channel management.
- Introduced permission handling improvements in `set` command with better error messages and user feedback.
- Created new utility functions for parsing user and role IDs, ensuring better command access control.
2026-04-10 06:42:46 +02:00
Puechberty Arthur bc623a7736 Refactor code for improved readability and consistency across various command files
- Adjusted formatting and indentation in `rename.rs`, `suggestion.rs`, `tempvoc.rs`, `ticket.rs`, `ticket_member.rs`, and `tickets.rs` for better clarity.
- Consolidated `if` statements and method calls for cleaner code in `suggestion.rs`, `tempvoc.rs`, and `ticket.rs`.
- Updated the `LOGS_PER_PAGE` constant in `viewlogs.rs` to increase the number of logs displayed per page.
- Removed unused `handle_boostembed` function from `logs_service.rs`.
- Added new modules in `mod.rs` for better organization of command files.
- Enhanced the `handle_show_pics` function in `showpics.rs` for improved member filtering.
- Updated the `handle_message` function in `message_event.rs` to streamline command handling.
2026-04-10 03:48:38 +02:00
Puechberty Arthur 572cfa17b2 clean dossier commands et correction quelque commands 2026-04-10 02:40:26 +02:00
Puechberty Arthur 3e69185296 feat(events): add message update, role, and voice state update handlers
- Implemented `handle_message_update` to log message edits.
- Created role event handlers for role creation, update, and deletion.
- Added voice state update handling to log channel changes.
- Introduced a new `ready_event` handler to restore bot presence and enforce blacklist.
- Updated `mod.rs` to include new event modules.
- Enhanced `main.rs` for database connection and initialization.
- Added comprehensive permission management in `permissions.rs`.
2026-04-10 02:13:04 +02:00