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();
|
||||
}
|
||||
} else {
|
||||
String strF = datahandler.trimString(content);
|
||||
datahandler.getResponseFutures(strF, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
final String contentF = content;
|
||||
//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