yt-dlp-bot/app_worker/main.py

17 lines
278 B
Python
Raw Normal View History

2023-03-30 03:51:49 +08:00
import asyncio
import uvloop
from worker.core.launcher import WorkerLauncher
from worker.core.log import setup_logging
2022-02-04 06:21:27 +08:00
2023-03-30 03:51:49 +08:00
async def main() -> None:
2022-06-11 04:35:48 +08:00
setup_logging()
2023-03-30 03:51:49 +08:00
await WorkerLauncher().start()
2022-02-04 06:21:27 +08:00
if __name__ == '__main__':
2023-03-30 03:51:49 +08:00
uvloop.install()
asyncio.run(main())