| 123456789101112131415161718192021222324252627282930 |
- from tasks.WantedQuests.config import CooperationType, WantedQuestsConfig
- def need_invite_vip(self):
- return True
- def get_invite_vip_name(self, ctype: CooperationType):
- if not self.fade_conf:
- return ""
- return self.fade_conf.get_invite_name(ctype)
- def next_run(self):
- pass
- def invite_success_callback(self, ctype: CooperationType, name: str):
- if not self.fade_conf:
- return
- self.fade_conf.update_invite_history(ctype, name)
- self.config.save()
- def get_config(self):
- config=WantedQuestsConfig()
- config.invite_friend_name="default"
- config.cooperation_only=True
- config.cooperation_type=self.fade_conf.get_cooperation_type_mask()
- return config
|