Conversation
✅ Deploy Preview for nonebot-bison ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #684 +/- ##
==========================================
+ Coverage 85.00% 85.27% +0.27%
==========================================
Files 97 98 +1
Lines 5520 5670 +150
==========================================
+ Hits 4692 4835 +143
- Misses 828 835 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2791f30 to
4921621
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR introduces the ability to adjust scheduling intervals via environment variables.
- Loads the site-specific scheduling rule from configuration in scheduler.py
- Adds a new ScheduleConfig model and bison_site_schedule configuration in plugin_config.py
- Updates the documentation to illustrate how to configure scheduling via environment variables
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| nonebot_bison/scheduler/scheduler.py | Added a new helper method to load schedule rules from plugin_config and updated the scheduler initialization |
| nonebot_bison/plugin_config.py | Introduced ScheduleConfig and bison_site_schedule as configurable options |
| docs/usage/README.md | Added usage instructions and examples for the BISON_SITE_SCHEDULE environment variable |
| **self.scheduler_config.schedule_setting, | ||
| ) | ||
|
|
||
| def _load_scehdule_rule_from_config(self): |
There was a problem hiding this comment.
The method name '_load_scehdule_rule_from_config' contains a spelling error. Consider renaming it to '_load_schedule_rule_from_config' for clarity.
| def _load_scehdule_rule_from_config(self): | |
| def _load_schedule_rule_from_config(self): |
This change is