Files
bili-sync/entry.py
2023-11-22 23:37:45 +08:00

18 lines
345 B
Python

from processor import process
import sys
import asyncio
from settings import settings
async def entry() -> None:
if any("once" in _ for _ in sys.argv):
# 单次运行
await process()
while True:
await process()
await asyncio.sleep(settings.interval * 60)
def start() -> None:
asyncio.run(entry())