From 0d38dbec49155840840111515065df5ae57c2c3c Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Sun, 26 Mar 2023 17:34:35 +0700 Subject: [PATCH] add discord after hours of work? --- .idea/jarRepositories.xml | 5 + .idea/misc.xml | 5 + dependency-reduced-pom.xml | 5 + pom.xml | 12 ++ .../java/me/chayapak1/chomens_bot/Bot.java | 4 + .../chayapak1/chomens_bot/Configuration.java | 14 ++ .../java/me/chayapak1/chomens_bot/Main.java | 12 +- .../command/DiscordCommandContext.java | 74 +++++++ .../plugins/ChatCommandHandlerPlugin.java | 2 +- .../plugins/CommandHandlerPlugin.java | 60 ++++-- .../chomens_bot/plugins/ConsolePlugin.java | 2 +- .../chomens_bot/plugins/DiscordPlugin.java | 197 ++++++++++++++++++ .../chomens_bot/util/EscapeCodeBlock.java | 7 + src/main/resources/default-config.yml | 6 + 14 files changed, 380 insertions(+), 25 deletions(-) create mode 100644 src/main/java/me/chayapak1/chomens_bot/command/DiscordCommandContext.java create mode 100644 src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java create mode 100644 src/main/java/me/chayapak1/chomens_bot/util/EscapeCodeBlock.java diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 709f317..9f2cdc0 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -6,6 +6,11 @@