public string Query(string text, string username, string botName) { StringBuilder buffer = new StringBuilder(1024); ChatScriptAPI.chatscript_perform_chat(username, botName, text, "0.0.0.0", buffer); return(buffer.ToString()); }
private void Start() { var path = Application.streamingAssetsPath + "/chatscript"; if (ChatScriptAPI.chatscript_init_sys(0, new string[] { }, path, path, path) != 0) { Debug.LogError("Failed to initialize chatscript system!"); } }