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