its-matrix-bot/its_matrix_bot/__main__.py

21 lines
394 B
Python
Raw Normal View History

import asyncio
import argparse
2022-03-29 19:28:20 +02:00
import logging
from . import ItSyndikatBot
from .config import Config
2022-03-29 19:28:20 +02:00
logging.basicConfig(level=logging.DEBUG)
parser = argparse.ArgumentParser(description="IT-Syndikat matrix bot")
parser.add_argument(
2022-03-27 19:35:40 +02:00
"-c",
"--config",
help="path to the config file",
)
args = parser.parse_args()
bot = ItSyndikatBot(Config(args.config))
asyncio.run(bot.run())