예제 #1
0
    def __init__(self, argument_parser=None):
        EventBotClient.__init__(self, "Socket", argument_parser)

        print("TCP Socket Client server now listening on %s:%d" % (self._host, self._port))
        self._server_socket = self.create_socket_connection(self._host, self._port, self._queue, self._max_buffer)

        self._renderer = JSONRenderer(self)
예제 #2
0
    def __init__(self, argument_parser=None):
        self._host = None
        self._port = None
        self._queue = None
        self._max_buffer = None
        self._server_socket = None
        self._client_connection = None

        EventBotClient.__init__(self, "Socket", argument_parser)

        if self._host is not None and \
                self._port is not None and \
                self._queue is not None:
            outputLog(
                self, "TCP Socket Client server now listening on %s:%d" %
                (self._host, self._port))
            self._server_socket = self.create_socket_connection(
                self._host, self._port, self._queue, self._max_buffer)
            self._renderer = JSONRenderer(self)

        else:
            outputLog(
                self,
                "TCP Socket Client configuration not defined, unable to create socket!"
            )
예제 #3
0
파일: client.py 프로젝트: Freiza/program-y
    def __init__(self, argument_parser=None):
        EventBotClient.__init__(self, "Socket", argument_parser)

        print("TCP Socket Client server now listening on %s:%d"%(self._host, self._port))
        self._server_socket = self.create_socket_connection(self._host, self._port, self._queue, self._max_buffer)

        self._renderer = JSONRenderer(self)
예제 #4
0
    def __init__(self, argument_parser=None):
        self.running = False
        EventBotClient.__init__(self, "Console", argument_parser)

        # Variables added for Thesis
        self.user_history = ""
        self.question_number = 0
        self.user_formality = 0
        self.question = ""
        self.filename = "user_results_v2.txt"
예제 #5
0
 def __init__(self, argument_parser=None):
     self.running = False
     EventBotClient.__init__(self, "Console", argument_parser)
예제 #6
0
 def __init__(self, discord_client: DiscordClient, argument_parser=None):
     self._discord_client = discord_client
     EventBotClient.__init__(self, "Discord", argument_parser)
예제 #7
0
 def __init__(self, argument_parser=None):
     self.running = False
     EventBotClient.__init__(self, "Console", argument_parser)
     self._renderer = TextRenderer(self)
예제 #8
0
 def __init__(self, id, argument_parser=None):
     EventBotClient.__init__(self, id, argument_parser)
     self.prior = False
     self.ran = False
     self.post = False
예제 #9
0
 def __init__(self, id, argument_parser=None):
     EventBotClient.__init__(self, id, argument_parser)
예제 #10
0
 def __init__(self, id, argument_parser=None):
     EventBotClient.__init__(self, id, argument_parser)
예제 #11
0
 def test_init_raw(self):
     arguments = MockArgumentParser()
     with self.assertRaises(NotImplementedError):
         client = EventBotClient("testevents", arguments)
예제 #12
0
 def __init__(self, id, argument_parser=None):
     EventBotClient.__init__(self, id, argument_parser)
     self.prior = False
     self.ran = False
     self.post = False
예제 #13
0
파일: client.py 프로젝트: cen-ai/program-y
 def __init__(self, argument_parser=None):
     self._description = "Programy AIML2.x Console Client"
     self.running = False
     EventBotClient.__init__(self, "Console", argument_parser)
예제 #14
0
파일: client.py 프로젝트: Freiza/program-y
 def __init__(self, argument_parser=None):
     self.running = False
     EventBotClient.__init__(self, "Console", argument_parser)
예제 #15
0
 def __init__(self, argument_parser=None):
     print("Initiating ROS-Node Client...")
     self.running = False
     EventBotClient.__init__(self, "rosnode", argument_parser)