mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-05-07 08:43:19 +08:00
18 lines
345 B
Python
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())
|