Exemple #1
0
    def __init__(self, id, argument_parser=None):
        RestBotClient.__init__(self, id, argument_parser)
        self.initialise()

        bot_name = "defaultbot"
        try:
            bot = self._bot_factory.select_bot()
            brain = bot._brain_factory.select_brain()
            bot_name = brain.configuration.bot_name

            YLogger.set_prefix(bot_name)
        except Exception:
            pass

        self._server_mode = True  # if Not Server-Mode then change to comment line.
        YLogger.set_stdout(self.arguments.args.stdoutlog)
        YLogger.set_traceback(False)