added the caches earlier into the flow so that the new threads would not run into errors

This commit is contained in:
christian 2021-12-05 17:17:46 +01:00
parent 9567db391f
commit 6006f50bcb

View File

@ -98,6 +98,8 @@ public class DiscordHandler extends ListenerAdapter {
System.out.println("FINISHED ALL ANNOTATIONS");
System.out.println("updatedstring cache");
String strF = datahandler.trimString("abcdef");
datahandler.getResponseFutures(strF, stanfordCoreNLP, stanfordCoreNLPSentiment);
String token = new settings().getDiscordToken();
JDABuilder.createLight(token, GatewayIntent.GUILD_MESSAGES, GatewayIntent.DIRECT_MESSAGES)
.addEventListeners(new DiscordHandler())