Edm0nd/edmond/__main__.py
2020-10-08 18:46:45 +02:00

21 lines
445 B
Python

import argparse
import edmond.bot
import edmond.config
import edmond.log
def main():
argparser = argparse.ArgumentParser()
argparser.add_argument("-c", "--config", default="config.json")
args = argparser.parse_args()
logger = edmond.log.get_logger(name="edmond")
config = edmond.config.load_config(args.config, logger=logger)
bot = edmond.bot.Bot(config, logger)
bot.run()
if __name__ == "__main__":
main()