refactor: Refactor interaction handling and event management

- Updated interactionCreate event to improve error handling and logging.
- Enhanced ready event to ensure client user is available before proceeding.
- Refactored voiceStateUpdate event for better clarity and error handling.
- Adjusted index.ts to improve client initialization and command/event loading.
- Improved Shoukaku event handling and initialization in ShoukakuEvents.ts.
- Enhanced logger utility for better message formatting.
- Updated TypeScript configuration for better compatibility and strictness.
- Created a new botClient type definition for improved type safety.
This commit is contained in:
2025-04-24 23:42:36 +08:00
parent c42e0931d6
commit 72a59bbcdd
18 changed files with 1088 additions and 984 deletions

View File

@@ -1,21 +1,5 @@
# Ignore artifacts:
node_modules
dist
node_modules
coverage
data
*.db
*.db-journal
*.db-wal
# Ignore configuration files managed by other tools:
package-lock.json
pnpm-lock.yaml
yarn.lock
# Ignore logs:
logs
*.log
# Ignore environment files:
.env*
!.env.example
build
*.d.ts