예제 #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)
예제 #2
0
 def __init__(self, id, argument_parser=None):
     RestBotClient.__init__(self, id, argument_parser)
     self.initialise()
예제 #3
0
 def __init__(self, id, argument_parser=None):
     self._description = "Programy AIML2.x Sanic REST Client"
     RestBotClient.__init__(self, id, argument_parser)
예제 #4
0
파일: client.py 프로젝트: deepmipt/deepy
 def __init__(self, id, argument_parser=None):
     RestBotClient.__init__(self, id, argument_parser)
     self.preprocesser = PreProcessor(
         fpath="../../storage/lookups/normal.txt")
예제 #5
0
파일: client.py 프로젝트: Freiza/program-y
 def __init__(self, id, argument_parser=None):
     RestBotClient.__init__(self, id, argument_parser)
예제 #6
0
 def __init__(self, id, argument_parser=None):
     c = MockArgumentParserGiseldo()
     RestBotClient.__init__(self, id, c)
     self.initialise()
예제 #7
0
 def __init__(self, botid, argument_parser=None):
     RestBotClient.__init__(self, botid, argument_parser)