ircPort = 0 try: ircPort = int(glob.conf.config["irc"]["port"]) except ValueError: consoleHelper.printColored( "[!] Invalid IRC port! Please check your config.ini and run the server again", bcolors.RED) log.logMessage("IRC server started!", discord="bunker", of="info.txt", stdout=False) consoleHelper.printColored( "> IRC server listening on 127.0.0.1:{}...".format(ircPort), bcolors.GREEN) threading.Thread( target=lambda: ircserver.main(port=ircPort)).start() else: consoleHelper.printColored("[!] Warning! IRC server is disabled!", bcolors.YELLOW) # Server port serverPort = 0 try: serverPort = int(glob.conf.config["server"]["port"]) except ValueError: consoleHelper.printColored( "[!] Invalid server port! Please check your config.ini and run the server again", bcolors.RED) # Server start message and console output log.logMessage("Server started!",
consoleHelper.printColored("[!] Warning! Datadog stats tracking is disabled!", bcolors.YELLOW) except: consoleHelper.printColored("[!] Error while starting Datadog client! Please check your config.ini and run the server again", bcolors.RED) # IRC start message and console output glob.irc = generalUtils.stringToBool(glob.conf.config["irc"]["enable"]) if glob.irc: # IRC port ircPort = 0 try: ircPort = int(glob.conf.config["irc"]["port"]) except ValueError: consoleHelper.printColored("[!] Invalid IRC port! Please check your config.ini and run the server again", bcolors.RED) log.logMessage("IRC server started!", discord="bunker", of="info.txt", stdout=False) consoleHelper.printColored("> IRC server listening on 127.0.0.1:{}...".format(ircPort), bcolors.GREEN) threading.Thread(target=lambda: ircserver.main(port=ircPort)).start() else: consoleHelper.printColored("[!] Warning! IRC server is disabled!", bcolors.YELLOW) # Server port serverPort = 0 try: serverPort = int(glob.conf.config["server"]["port"]) except ValueError: consoleHelper.printColored("[!] Invalid server port! Please check your config.ini and run the server again", bcolors.RED) # Server start message and console output log.logMessage("Server started!", discord="bunker", of="info.txt", stdout=False) consoleHelper.printColored("> Tornado listening for HTTP(s) clients on 127.0.0.1:{}...".format(serverPort), bcolors.GREEN) # Connect to pubsub channels