From 85b394c86d05858fe8ec598acdf3403b5f1e2453 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 19 Mar 2025 14:12:35 +0700 Subject: [PATCH] fix: increase the query timeout even more to 5 minutes --- .../java/me/chayapak1/chomens_bot/plugins/QueryPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/QueryPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/QueryPlugin.java index 399215ba..3514ba72 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/QueryPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/QueryPlugin.java @@ -89,11 +89,11 @@ public class QueryPlugin extends Bot.Listener { // this probably doesn't do much, since even if the command returns // no output, the tracker will still tellraw to the bot that this command has // completed no matter what, but just in case, we'll remove the - // transactions and the ids here after 30 seconds + // transactions and the ids here after 5 minutes bot.executor.schedule(() -> { transactions.remove(transactionId); ids.remove(id); - }, 30, TimeUnit.SECONDS); + }, 5, TimeUnit.MINUTES); return Triple.of(future, transactionId, id); }