added threads to handle second importance processing
This commit is contained in:
parent
29d1f280b7
commit
9567db391f
@ -165,8 +165,12 @@ public class DiscordHandler extends ListenerAdapter {
|
|||||||
event.getMessage().getChannel().sendMessage(ResponseStr).queue();
|
event.getMessage().getChannel().sendMessage(ResponseStr).queue();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
String strF = datahandler.trimString(content);
|
final String contentF = content;
|
||||||
datahandler.getResponseFutures(strF, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
//these should be able to run on their own.
|
||||||
|
new Thread(() -> {
|
||||||
|
String strF = datahandler.trimString(contentF);
|
||||||
|
datahandler.getResponseFutures(strF, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||||
|
}).start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user