config.py 575 B

123456789101112131415161718
  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 SimpleTidy(BaseModel):
  9. # 贪吃鬼和招财猫
  10. greed_maneki: bool = Field(default=False, description="greed_maneki_help")
  11. class SoulsTidy(ConfigBase):
  12. scheduler: Scheduler = Field(default_factory=Scheduler)
  13. simple_tidy: SimpleTidy = Field(default_factory=SimpleTidy)