- Added feature flag helpers and decorators for easy usage in commands.
- Created a feature flag service for managing flags, including initialization, caching, and evaluation strategies.
- Implemented a loader to initialize the feature flag service on bot startup.
- Defined types for feature flags, including configurations, contexts, evaluations, and statistics.
- Provided examples of feature flag usage in commands, demonstrating various patterns such as A/B testing, gradual rollouts, and access control.
- Added utility functions for cookie parsing, string sanitization, and date formatting in `src/server/lib/utils.ts`.
- Introduced encryption and decryption methods for JSON objects to enhance data security.
- Implemented functions to handle HTTP request encoding and response compression.
- Created a safe upsert function for guild data using Prisma ORM.
test: Add syntax validation for dashboard items
- Created a script to validate the syntax of EJS templates in `test/.validate_dashboard_items_syntax.js`.
- Implemented error handling for unmatched brackets and unterminated strings in the script.
feat: Enhance Discord bot interaction with modals
- Developed a Discord bot feature to open modals with user input fields and selections in `test/example.ts.txt`.
- Added functionality to handle modal submissions and respond with user input.
chore: Backup invalid mob data and scheduled mob attacks
- Created JSON backups for invalid mob entries and scheduled mob attacks in `test/invalid_mobs_backup.json` and `test/scheduled_mob_attack_backup.json`.
test: Add various scripts for debugging and error tracing
- Introduced multiple scripts for parsing and validating JavaScript code using Acorn, including error tracing and token inspection in `test/tmp_*`.
- Updated the dashboard settings partial to include a semi-transparent background for better visibility.
- Introduced a new script for validating the syntax of dashboard item scripts, ensuring better error handling and diagnostics.
- Added a comprehensive JavaScript file for managing dashboard items, including fetching, rendering, editing, and deleting items.
- Implemented various utility functions for handling alerts, rewards, and modal interactions within the item management interface.
- Created temporary scripts for debugging and parsing errors in item scripts, aiding in development and maintenance.