config.py 887 B

1234567891011121314151617181920212223
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from pydantic import BaseModel, Field
  5. from enum import Enum
  6. from datetime import datetime, time
  7. from tasks.Component.config_scheduler import Scheduler
  8. from tasks.Component.config_base import ConfigBase
  9. from tasks.Component.SwitchSoul.switch_soul_config import SwitchSoulConfig
  10. class TakoConfig(BaseModel):
  11. enable: bool = Field(default=False)
  12. buff_gold_50_click: bool = Field(default=False)
  13. buff_gold_100_click: bool = Field(default=False)
  14. buff_exp_50_click: bool = Field(default=False)
  15. buff_exp_100_click: bool = Field(default=False)
  16. class Tako(ConfigBase):
  17. scheduler: Scheduler = Field(default_factory=Scheduler)
  18. tako_config: TakoConfig = Field(default_factory=TakoConfig)
  19. switch_soul: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)