this.sentenceList = new Array();
}
AI_Input.prototype = {
- maxHistoryLength: 16,
+ maxHistoryLength: 32,
sentenceSeparator: [
"。",
"!",
],
appendInput: function(input, srctype){
//inputはStringとArrayが使用できる
- var sList = input.splitByArray(this.sentenceSeparator);
+ var sList;
+ if(srctype != "User"){
+ sList = input.splitByArray(this.sentenceSeparator);
+ } else{
+ sList = [input];
+ }
console.log(sList);
this.sentenceList.push([srctype]);
this.sentenceList = this.sentenceList.concat(sList);