config.py 590 B

1234567891011121314151617181920
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from datetime import timedelta
  5. from pydantic import BaseModel, Field
  6. from tasks.Component.config_scheduler import Scheduler
  7. from tasks.Component.config_base import ConfigBase
  8. class PetsConfig(ConfigBase):
  9. # 其乐融融
  10. # pets_happy: bool = Field(default=True)
  11. # 快速喂养
  12. pets_feast: bool = Field(default=True)
  13. class Pets(ConfigBase):
  14. scheduler: Scheduler = Field(default_factory=Scheduler)
  15. pets_config: PetsConfig = Field(default_factory=PetsConfig)