Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: optimize directory structure #1

Merged
merged 1 commit into from
Aug 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tasks/daily/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@
from managers.config_manager import config
from managers.translate_manager import _
from tasks.base.date import Date
from tasks.daily.mail import Mail
from tasks.daily.assist import Assist
from tasks.reward.mail import Mail
from tasks.reward.assist import Assist
from tasks.daily.photo import Photo
from tasks.daily.fight import Fight
from tasks.daily.universe import Universe
from tasks.daily.dispatch import Dispatch
from tasks.daily.quest import Quest
from tasks.daily.srpass import SRPass
from tasks.weekly.universe import Universe
from tasks.reward.dispatch import Dispatch
from tasks.reward.quest import Quest
from tasks.reward.srpass import SRPass
from tasks.daily.synthesis import Synthesis
from tasks.daily.forgottenhall import ForgottenHall
from tasks.weekly.forgottenhall import ForgottenHall


class Daily:
@staticmethod
def start():
logger.hr(_("开始日常任务"), 0)
if Date.is_next_4_am(config.last_run_timestamp):
Mail.get_reward()
Assist.get_reward()
Photo.photograph()
Synthesis.start()
config.save_timestamp("last_run_timestamp")
Expand All @@ -37,6 +35,8 @@ def start():
ForgottenHall.start()
config.save_timestamp("forgottenhall_timestamp")

Mail.get_reward()
Assist.get_reward()
Dispatch.get_reward()
Quest.get_reward()
SRPass.get_reward()
Expand Down
Empty file added tasks/reward/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added tasks/weekly/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.