17 lines
356 B
Python
17 lines
356 B
Python
import asyncio
|
|
import os
|
|
from importlib import import_module
|
|
|
|
from libbot import minecraft, signal
|
|
|
|
for module in os.listdir("modules"):
|
|
if module.endswith(".py"):
|
|
import_module("modules." + module.rstrip(".py"))
|
|
|
|
|
|
async def main():
|
|
await asyncio.gather(minecraft.loop(), signal.loop())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|