yt-dlp-bot/app_bot/main.py

19 lines
309 B
Python
Raw Normal View History

2022-02-04 06:21:27 +08:00
#!/usr/bin/env python3
"""Bot Launcher Module."""
import asyncio
2023-03-30 03:51:49 +08:00
import uvloop
from bot.core.bot 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())