From 5ac244e3d2eaf7090e8cae63aa25c5dd1624245b Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 18 Oct 2024 08:22:39 +0700 Subject: [PATCH] refactor IRC which is VERY broken currently theres ConcurrentModificationException at IRCPlugin line 190 (for loop). i guess we could fix this by cloning it? --- .idea/jarRepositories.xml | 5 + build.gradle | 6 + .../chayapak1/chomens_bot/Configuration.java | 9 +- .../chomens_bot/irc/IRCMessageLoop.java | 128 ------------------ .../chomens_bot/irc/MessageBuffer.java | 29 ---- .../chomens_bot/irc/MessageParser.java | 70 ---------- .../chomens_bot/plugins/IRCPlugin.java | 127 +++++++++-------- .../chomens_bot/util/ColorUtilities.java | 63 +++++++++ src/main/resources/default-config.yml | 9 +- src/main/resources/logback.xml | 12 ++ 10 files changed, 165 insertions(+), 293 deletions(-) delete mode 100644 src/main/java/me/chayapak1/chomens_bot/irc/IRCMessageLoop.java delete mode 100644 src/main/java/me/chayapak1/chomens_bot/irc/MessageBuffer.java delete mode 100644 src/main/java/me/chayapak1/chomens_bot/irc/MessageParser.java create mode 100644 src/main/resources/logback.xml diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 78b7d7a..9030eee 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -56,5 +56,10 @@