-
Notifications
You must be signed in to change notification settings - Fork 1
New: major refactor, general cleanup #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
discord for testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request performs a major refactor and general cleanup by removing the dependency on the App instance from command execution, unifying environment variable access with getEnv, and updating configuration for workflows.
- Removed the App parameter from command execution functions and updated command manager accordingly.
- Consolidated Settings management using a global Settings object.
- Updated GitHub workflow permissions and refactored the app initialization logic.
Reviewed Changes
Copilot reviewed 27 out of 29 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/commandManager.ts | Removed App dependency and updated command registration logic. |
| src/interfaces/command.ts | Adjusted CommandV2 interface by removing redundant App parameters. |
| src/handlers.ts | Added handler functions for channel and thread deletions. |
| src/cron.ts | Introduced cron jobs using getEnv and simplified scheduling. |
| src/commands/* | Updated command signatures to remove the App parameter. |
| src/app.ts | Refactored application initialization and removed legacy code. |
| scripts/* and .github/workflows/* | Configured workflow permissions and added deployment steps. |
Files not reviewed (2)
- deno.jsonc: Language not supported
- import_map.json: Language not supported
|
🎉 This PR is included in version 4.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.