From 6006f50bcbd04695a7ffce4bb60a4cbabdd11215 Mon Sep 17 00:00:00 2001 From: christian Date: Sun, 5 Dec 2021 17:17:46 +0100 Subject: [PATCH] added the caches earlier into the flow so that the new threads would not run into errors --- .../src/main/java/PresentationLayer/DiscordHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArtificialAutism/src/main/java/PresentationLayer/DiscordHandler.java b/ArtificialAutism/src/main/java/PresentationLayer/DiscordHandler.java index 9432e3b4..564b8b46 100644 --- a/ArtificialAutism/src/main/java/PresentationLayer/DiscordHandler.java +++ b/ArtificialAutism/src/main/java/PresentationLayer/DiscordHandler.java @@ -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())