Commit Graph
18 Commits
Author SHA1 Message Date
Puechberty Arthur e47cb68bc7 feat: implement command definition, registration, and execution framework
- Add `defineCommand` function to validate and normalize command inputs.
- Introduce `deployApplicationCommands` for deploying slash commands to Discord.
- Create `CommandRegistry` class for managing command registration and retrieval.
- Implement `buildSlashPayload` to construct slash command payloads with localization support.
- Add usage utilities for prefix and slash commands.
- Develop `CommandExecutor` to handle command execution with permission checks and cooldown management.
- Create member message rendering service for welcome and leave messages with customizable templates.
- Introduce presence template variables for dynamic bot status updates.
- Implement template variable utilities for rendering and extracting variables from strings.
2026-04-13 21:10:51 +02:00
Puechberty Arthur 1de2a76b05 refactor: réorganiser la structure des fichiers et déplacer les types et les magasins de données vers le dossier approprié 2026-04-13 20:47:34 +02:00
Puechberty Arthur 7ff76cdaba mise au bonne endroit des type 2026-04-13 20:23:49 +02:00
Puechberty Arthur 3eb23eb27a reorganizage du projet et mise en place d'un vrai build 2026-04-13 19:42:38 +02:00
Puechberty Arthur 0f82c7e287 feat: add utility commands for member messages and presence management
- Implement `goodbye` command to configure goodbye messages.
- Implement `help` command to provide a global help embed with command details.
- Implement `kiss` command to send a kiss message to a mentioned user.
- Create `memberMessagePanel` for managing welcome and goodbye messages.
- Implement `ping` command to check bot latency.
- Implement `presence` command to manage bot presence settings.
- Implement `welcome` command to configure welcome messages.
2026-04-12 23:08:03 +02:00
Puechberty Arthur a777ea18e0 feat: ajouter la documentation JSDoc pour les commandes et événements, et réorganiser l'enregistrement des événements 2026-04-12 22:31:56 +02:00
Puechberty Arthur fc0daa671d feat: add member message functionality for welcome and goodbye events
- Introduced `goodbyeCommand` and `welcomeCommand` to handle member leave and join events.
- Implemented `memberMessagePanel` for interactive message configuration.
- Created `dispatchMemberMessage` to send messages based on member events.
- Added database support for storing member message configurations.
- Integrated image rendering for member messages using `@napi-rs/canvas`.
- Registered event listeners for `GuildMemberAdd` and `GuildMemberRemove` to trigger messages.
- Updated `package.json` to include `@napi-rs/canvas` dependency.
2026-04-12 17:04:05 +02:00
Puechberty Arthur f6a2e2b970 feat: update environment configuration and enhance presence management
- Updated .env.example to use more secure database credentials.
- Modified Dockerfile to remove unnecessary data copy.
- Enhanced README with additional setup instructions and security notes.
- Updated docker-compose files to improve database connection handling and security.
- Added error messages for invalid channel and role resolutions in locales.
- Introduced new scripts for code quality checks in package.json.
- Refactored presence management logic to improve state handling and timer management.
- Added tests for argument tokenizer, command definition, presence types, and template variables.
2026-04-12 16:07:27 +02:00
Puechberty Arthur bd5ef564bb feat: ajouter la gestion du cooldown par commande et mise à jour des traductions 2026-04-12 15:17:43 +02:00
Puechberty Arthur e5781cbb51 feat: ajouter la commande de présence avec panneau interactif et mises à jour des réponses 2026-04-12 15:08:19 +02:00
Puechberty Arthur f807d523d0 feat: ajouter la résolution de la langue pour les commandes de préfixe 2026-04-12 13:43:13 +02:00
Puechberty Arthur d2eadc7f03 feat: ajouter la gestion des erreurs pour trop d'arguments et mise à jour des commandes 2026-04-12 13:36:58 +02:00
Puechberty Arthur b5e9793578 feat: ajouter la gestion des réponses pour les commandes de préfixe et de slash 2026-04-12 12:44:04 +02:00
Puechberty Arthur 8cd46fea76 fix: correction des incohérance avec la base de donnée 2026-04-12 12:00:48 +02:00
Puechberty Arthur e2bcb92e15 feat: ajouter la gestion des textes d'activité multiples et de l'intervalle de rotation dans la commande de présence 2026-04-12 11:38:47 +02:00
Puechberty Arthur 4e75be191a feat: améliorer la gestion des réponses de message dans la commande de présence 2026-04-12 11:04:10 +02:00
Puechberty Arthur 58aac55620 feat: add interactive presence command for bot status management
- Implemented a new `/presence` command allowing users to configure the bot's presence with an interactive panel.
- Added localization support for Spanish and French languages.
- Integrated PostgreSQL for storing and retrieving bot presence states.
- Created a Dockerfile and docker-compose configuration for easy deployment.
- Updated environment configuration to include database connection settings.
- Refactored command handling to include the new presence command.
- Enhanced error handling and user feedback for the presence command interactions.
2026-04-12 10:46:51 +02:00
Puechberty Arthur be8288ab5e feat: implement utility commands and command framework
- Add advanced command for complex argument handling.
- Introduce ping command for latency checking.
- Create argument parser for prefix and slash commands.
- Define command structure and registry for command management.
- Implement command deployment for Discord application commands.
- Add internationalization support for commands.
- Create handlers for prefix and slash command execution.
- Establish command execution context and permissions handling.
- Set up environment configuration with dotenv and zod.
- Add TypeScript configuration for strict type checking.
2026-04-12 02:34:53 +02:00