feat: add linuxawesomebot console entry point for uv run

This commit is contained in:
snowy-yang committed 2026-09-12 19:38:33 +08:00
1 parent 82ec179d21
commit 570eb0df70
4 files changed
+26 -10

No files matched your search

+5 -1
View File
@@ -200,8 +200,12 @@ class Bot:
await self.ob.stop()
if __name__ == "__main__":
def main():
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
cfg = load_config()
asyncio.run(Bot(cfg).run())
if __name__ == "__main__":
main()