klafytg/klafytg/runner.py
Hugo Levy-Falk 44bdfb7651 fix
2020-02-11 17:12:56 +00:00

13 lines
298 B
Python

from pathlib import Path
from .settings import logger, BOT_FOLDER
from .bot import Bot
def run():
logger.info("Klafirc is running !")
folder = Path(BOT_FOLDER)
bots = [Bot(filename.resolve()) for filename in folder.glob("*.toml")]
for b in bots:
b.start()
return bots