yt-dlp-bot/app_bot/main.py

20 lines
314 B
Python
Raw Normal View History

2022-02-04 06:21:27 +08:00
#!/usr/bin/env python3
"""Bot Launcher Module."""
2024-03-14 05:51:30 +08:00
2022-02-04 06:21:27 +08:00
import asyncio
2023-03-30 03:51:49 +08:00
import uvloop
2024-03-21 01:25:07 +08:00
from bot.bot.launcher import BotLauncher
from bot.core.log import setup_logging
2022-02-04 06:21:27 +08:00
async def main() -> None:
setup_logging()
await BotLauncher().run()
if __name__ == '__main__':
2023-03-30 03:51:49 +08:00
uvloop.install()
2022-02-04 06:21:27 +08:00
asyncio.run(main())