Repository navigation
🔧 Bug Fix
This hotfix resolves a critical ES Module import issue that was preventing the bot from starting up.
Changes
- Fixed ES Module import error: Converted to dynamic for the module
- Improved compatibility: Updated code to work with the latest version of
- Maintained functionality: All existing bot features remain unchanged
Technical Details
- The module was updated to use ES Module format
- Node.js doesn't support for ES Modules, causing startup failures
- Solution: Wrapped bot initialization in async function to handle dynamic imports
Impact
- Before: Bot failed to start with 'require() of ES Module not supported' error
- After: Bot starts successfully with full functionality restored
This is a backward-compatible fix that maintains all existing bot behavior while resolving the import compatibility issue.