#!/usr/bin/python3 from bot import bot from sys import argv as args from traceback import format_exc from logs import log server = args[1] if args else "UNSTABLE BOT MODE" if __name__ == "__main__": instance = bot(server) try: instance.mainloop() except Exception: Err = format_exc() for line in Err.split("\n"): log(line, server, "CRASH") exit(-1)