Edm0nd/edmond/__main__.py

24 lines
478 B
Python
Raw Normal View History

2020-10-08 18:46:45 +02:00
import argparse
2020-10-09 12:19:58 +02:00
import random
2020-10-08 18:46:45 +02:00
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()
2020-10-09 12:19:58 +02:00
random.seed()
2020-10-08 18:46:45 +02:00
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()