Commit Graph

166 Commits

Author SHA1 Message Date
Shni
89c7e951c3 feat: Simplificar el comando 'setup' eliminando lógica de inicialización y manejo de ejemplos avanzados 2025-10-14 21:58:34 -05:00
Shni
8f5beee709 feat: Mejorar el flujo de equipamiento de items, añadiendo validaciones y opciones interactivas para seleccionar slots y items del inventario. 2025-10-14 15:27:52 -05:00
Shni
7a080f9b71 feat: Implementar flujo interactivo para equipar items, incluyendo selección de slot y item desde el inventario del usuario. 2025-10-14 15:21:34 -05:00
Shni
b49447e2bd Refactor el comando 'items-lista' para mejorar la gestión de paginación y la estructura del mensaje, añadiendo botones de navegación y optimizando la construcción del payload. 2025-10-14 15:04:23 -05:00
Shni
852b1d02a2 feat: Add scripts for mob dependency management and server setup
- Implemented `findMobDependencies.ts` to identify foreign key constraints referencing the Mob table and log dependent rows.
- Created `fullServerSetup.ts` for idempotent server setup, including economy items, item recipes, game areas, mobs, and optional demo mob attacks.
- Developed `removeInvalidMobsWithDeps.ts` to delete invalid mobs and their dependencies, backing up affected scheduled mob attacks.
- Added unit tests in `testMobUnit.ts` and `mob.test.ts` for mob functionality, including stats computation and instance retrieval.
- Introduced reward modification tests in `testRewardMods.ts` and `rewardMods.unit.ts` to validate drop selection and coin multiplier behavior.
- Enhanced command handling for mob deletion in `mobDelete.ts` and setup examples in `setup.ts`, ensuring proper permissions and feedback.
- Created utility functions in `testHelpers.ts` for deterministic drop selection from mob definitions.
2025-10-14 14:58:38 -05:00
Shni
f36fa24e46 Refactor item property parsing and centralize utility functions
- Moved `parseItemProps` function to `core/utils.ts` for reuse across modules.
- Updated various services to import and utilize the centralized `parseItemProps`.
- Introduced new utility functions for handling consumable cooldowns and healing calculations.
- Enhanced mob management with a new repository system, allowing for dynamic loading and validation of mob definitions from the database.
- Added admin functions for creating, updating, listing, and deleting mobs, with validation using Zod.
- Implemented tests for mob management functionalities.
- Improved error handling and logging throughout the mob and consumable services.
2025-10-14 12:57:53 -05:00
Shni
eb957df1e6 Refactor el comando de eliminación de bloques para mejorar la legibilidad y la gestión de interacciones, permitiendo la selección múltiple de bloques y simplificando la lógica de confirmación. 2025-10-14 11:40:22 -05:00
Shni
deb08a3413 Implement feature X to enhance user experience and fix bug Y in module Z 2025-10-14 11:29:15 -05:00
Shni
0eb5aa0691 Refactor Amayo client initialization and enhance editor functionality
- Updated the Amayo client to use environment variables for configuration defaults.
- Improved cache and sweeper settings for message and user management.
- Added detailed error handling and logging during database connection and Discord login.
- Introduced a new interactive editor for creating and managing display components with modals.
- Implemented various editor actions including adding content, editing titles/descriptions, and managing components.
- Enhanced user feedback with ephemeral messages for actions taken in the editor.
2025-10-14 11:12:52 -05:00
d9734ba948 feat: mejorar formato de salida en comandos de durabilidad e inventario 2025-10-09 03:00:06 -05:00
a2bf5550f9 feat: agregar comando para mostrar la durabilidad de items no-apilables en el inventario 2025-10-09 02:58:47 -05:00
79ece13420 fix: resolve durability and combat issues with stackable items
- Updated database schema to set stackable items as non-stackable.
- Implemented migration script to convert existing stackable items to instances with durability.
- Fixed combat logic to ensure players lose if no weapon is equipped.
- Added admin commands for inventory debugging and resetting.
- Enhanced item display to show durability instead of quantity.
- Conducted thorough testing and validation of changes.
2025-10-09 02:47:29 -05:00
e5801e49bd feat: implementar comando para regenerar durabilidad de items no inicializados 2025-10-09 02:30:55 -05:00
646f62d2e9 feat(minigames): implement dual durability system for tools and weapons
- Introduced separation between `tool` (for gathering) and `weaponTool` (for combat) in minigames.
- Adjusted durability reduction logic to apply a 50% reduction for weapons used in combat to prevent instant breakage.
- Updated `RunResult` type to include `weaponTool` information.
- Enhanced `runMinigame` logic to handle weapon degradation during combat scenarios.
- Updated user commands to reflect both tool and weapon durability in outputs.
- Modified scheduled mob attacks to respect the new durability system.
- Added comprehensive documentation on the new dual durability feature and its implications for gameplay balance.
2025-10-09 02:23:51 -05:00
3a311c8bb6 feat: agregar lógica de penalización por fatiga en recompensas; actualizar tipos de recompensa para incluir monedas base y monedas después de la penalización 2025-10-09 01:57:58 -05:00
0b0a73d114 feat: agregar penalización por fatiga en recompensas de minijuegos; ajustar lógica de recompensas y modificar tipos para incluir modificadores 2025-10-09 01:49:36 -05:00
33b768bbb2 feat: agregar comando de registro de muertes y penalizaciones; implementar ítem de purga de efectos y mejorar la documentación de creación de contenido 2025-10-09 01:36:32 -05:00
ae12b50aa1 feat: agregar registro de muertes y penalizaciones dinámicas en minijuegos; implementar comandos para gestionar efectos de estado 2025-10-09 01:26:29 -05:00
519e905384 feat: agregar penalizaciones por derrota en minijuegos y mejorar la visualización de estadísticas del jugador 2025-10-09 01:17:59 -05:00
2befd4a278 feat: integrate combat system with equipment and HP persistence
- Refactored combat mechanics to utilize player equipment stats for damage and defense calculations.
- Implemented a system to track player HP across combat encounters, including regeneration rules upon defeat.
- Enhanced tool management by introducing a logging system for tool breaks, allowing players to view recent tool usage and breakage events.
- Added commands for viewing combat history and tool break logs, providing players with insights into their performance.
- Updated various game commands to utilize new formatting functions for combat summaries and tool information.
- Introduced a new mob data structure to define mob characteristics and scaling based on area levels.
2025-10-09 00:44:30 -05:00
b66379d790 refactor: mejorar la legibilidad del código en los comandos de mina, pelear y pescar; ajustar formato en la función de durabilidad de herramientas 2025-10-09 00:14:07 -05:00
1c086ec025 feat: agregar barra de durabilidad y resumen de combate en comandos de mina, pelear y pescar; implementar comando para inspeccionar herramientas 2025-10-09 00:12:56 -05:00
44aad43df6 Refactor economy service and types for improved readability and functionality
- Reformatted code for consistent styling and indentation in service.ts
- Enhanced item reward structure in types.ts to include probability for chest rewards
- Added randomization modes for chest rewards: 'all', 'single', and 'roll-each'
- Updated functions in service.ts to handle new reward structures and improve error handling
- Ensured better organization and clarity in function parameters and return types
2025-10-08 23:34:55 -05:00
03f66f2f82 feat: ajustar bloques divisores en los comandos de mina y racha para mejorar la presentación 2025-10-08 23:18:34 -05:00
de39e7e487 feat: agregar categoría a varios comandos y mejorar la presentación de mensajes 2025-10-08 23:06:16 -05:00
d842a4ebd5 feat: mejorar la presentación de estadísticas y mensajes de error en los comandos de racha, estadísticas y tienda 2025-10-08 22:51:15 -05:00
32ede57d89 feat: agregar funciones para manejar interacciones en la tienda 2025-10-08 22:30:16 -05:00
0b7f27d552 feat: mejorar la presentación de precios y agregar iconos personalizados en la tienda 2025-10-08 22:24:44 -05:00
063b61bca2 Update shop command part1 2025-10-08 21:53:46 -05:00
a5d4879123 feat: mejorar la estructura y legibilidad del código en el comando 'area-nivel', añadiendo soporte para metadata y optimizando la gestión de interacciones 2025-10-07 22:24:53 -05:00
67643595f3 feat: add TypeScript type checking task to VSCode configuration
feat: implement area metadata blocks in game commands for enhanced area details

fix: refactor game commands to utilize new area metadata blocks and improve code consistency

feat: enhance Appwrite API integration with additional collections and storage support

refactor: update componentsV2 to support image blocks in display rendering
2025-10-07 22:17:03 -05:00
3f5757d28f fix(racha): mejorar la construcción del display en el comando de racha 2025-10-07 11:35:08 -05:00
1665c58a33 fix(racha): evitar type:9 sin accessory usando componentsV2 builder; corrige Invalid Form Body en display de racha 2025-10-07 11:34:46 -05:00
7f2d1903bb refactor: mejorar la legibilidad y consistencia del código en _helpers.ts 2025-10-07 11:20:58 -05:00
e18caf414d fix: corregir la referencia del mensaje en sendDisplayReply para cumplir con la nueva API 2025-10-07 11:20:22 -05:00
6a9135c03a feat(settings): invalidate guild cache after settings updates and improve settings panel UX 2025-10-07 10:52:47 -05:00
8be8ea5925 Add comprehensive documentation and improvement suggestions for Amayo bot
- Created README.md for static site documentation, detailing features, structure, local usage, and Heroku deployment.
- Added RESUMEN_CAMBIOS.md summarizing critical bug fixes, command updates, and documentation enhancements.
- Introduced SUGERENCIAS_Y_MEJORAS.md with a thorough analysis of the project, new feature suggestions, and technical improvements.
2025-10-07 10:23:15 -05:00
ab49a7d3c5 feat: add crafting recipe functionality to item creation and editing commands 2025-10-06 11:47:22 -05:00
009e72faca feat(mobEdit): simplify mob display structure and improve readability of content 2025-10-05 21:56:19 -05:00
294a641e54 feat: Improve error handling in promptKeySelection for interaction updates and timeouts 2025-10-05 21:46:15 -05:00
cdcc339693 feat: Enhance offer editing command with interactive selection and improved error handling
- Added interactive selection for offers in the `offerEdit` command, allowing users to choose an offer to edit.
- Improved permission checks with detailed error messages.
- Refactored editor display and components for better readability and user experience.
- Updated modal handling for various editing options (base, price, window, limits, metadata) to ensure consistent UI updates.
- Enhanced feedback messages for successful updates and cancellations.
- Integrated item fetching and formatting for better display of rewards in `pelear`, `pescar`, `plantar`, and `racha` commands.
- Improved item display in the shop command with consistent formatting and icons.
2025-10-05 21:37:54 -05:00
5bbc14a0cc feat(wallet): initialize new wallets with a default coin amount 2025-10-05 20:21:29 -05:00
b263b10b0f Refactor game area resolution and argument parsing for game commands 2025-10-05 19:58:26 -05:00
0b7ec0ee32 feat(game): add area fallback logic for commands and helpers 2025-10-05 19:44:54 -05:00
66a984d74e feat(game-commands): add generic argument parser and integrate for mina, pelear, pescar 2025-10-05 19:34:45 -05:00
1b1aa40358 Maldicion se me olvido poner que las areas fueran detectadas auto 2025-10-05 18:18:54 -05:00
6bbb6450dc Fallo de argumentos 2025-10-05 18:17:50 -05:00
f317b6d3bf refactor(componentsV2): migrate all admin and game message commands to new display components API 2025-10-05 18:09:15 -05:00
b37261e73b Refactor and modernize itemCreate command: flatten message components and improve editor logic 2025-10-05 17:32:12 -05:00
9b3599339a Refactor player stats display to use reusable section generator and improve formatting 2025-10-05 16:51:56 -05:00