def send_command(self, command: str, *args, **kwargs):
info = '<STR_LIT>'<EOL>self._messaging_logger.command.info(info, command, args, kwargs)<EOL>command = command.encode('<STR_LIT:utf8>')<EOL>args = _json.dumps(args).encode('<STR_LIT:utf8>')<EOL>kwargs = _json.dumps(kwargs).encode('<STR_LIT:utf8>')<EOL>frame = (b'<STR_LIT>', command, args, kwargs)<EOL>debug = '<STR_LIT>'<EOL>self._messaging_logger.command.debug(debug, self._run_control_loop)<EOL>if self._run_control_loop:<EOL><INDENT>self.add_callback(self.command_socket.send_multipart, frame)<EOL><DEDENT>else:<EOL><INDENT>self.command_socket.send_multipart(frame)<EOL><DEDENT>
For request bot to perform some action