From 8f1558bedc80a22a5485c86ab8c0211e436f3b56 Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Mon, 30 Sep 2024 12:51:54 -0400 Subject: [PATCH] Cleanup --- .idea/.gitignore | 8 -- .idea/artifacts/butler_jar.xml | 45 -------- .idea/encodings.xml | 7 -- .idea/misc.xml | 14 --- .idea/uiDesigner.xml | 124 ---------------------- .idea/vcs.xml | 6 -- pom.xml | 4 +- src/main/java/com/okseby/butler/Main.java | 25 ++--- 8 files changed, 11 insertions(+), 222 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/artifacts/butler_jar.xml delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/uiDesigner.xml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/artifacts/butler_jar.xml b/.idea/artifacts/butler_jar.xml deleted file mode 100644 index a871efd..0000000 --- a/.idea/artifacts/butler_jar.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - $PROJECT_DIR$/out/artifacts/butler_jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index aa00ffa..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 0a13117..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml deleted file mode 100644 index 2b63946..0000000 --- a/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 54fc5ef..86de49a 100644 --- a/pom.xml +++ b/pom.xml @@ -31,13 +31,13 @@ net.dv8tion JDA - 5.0.0-beta.9 + 5.1.1 com.github.FrostedCA EasyCommands - 0.7.1 + 0.8.14 diff --git a/src/main/java/com/okseby/butler/Main.java b/src/main/java/com/okseby/butler/Main.java index 3c90bfd..c957fdb 100644 --- a/src/main/java/com/okseby/butler/Main.java +++ b/src/main/java/com/okseby/butler/Main.java @@ -1,27 +1,20 @@ package com.okseby.butler; +import com.okseby.butler.commands.ShutdownCmd; import ca.tristan.easycommands.EasyCommands; import ca.tristan.easycommands.commands.defaults.HelpCmd; -import com.okseby.butler.commands.ShutdownCmd; -import net.dv8tion.jda.api.JDA; - import java.io.IOException; +import java.net.URISyntaxException; public class Main { - public static void main(String[] args) throws InterruptedException, IOException { - EasyCommands easyCommands = new EasyCommands(); + public static void main(String[] args) throws InterruptedException, IOException, URISyntaxException { + EasyCommands ec = new EasyCommands(); - JDA jda = easyCommands.addExecutor( // Add your custom commands/executors here! - new HelpCmd(easyCommands), - new ShutdownCmd() - ).registerListeners( // Add your custom listeners/events here! - //new ExampleListener1(), - //new ExampleListener2() - ).addGatewayIntents(/*leave empty if any*/) - .addEnabledCacheFlags(/*leave empty if any*/) - .buildJDA(); // Starts the bot! + ec.registerListeners( - // This is kinda just to suppress an annoying IntelliJ warning. - System.out.println("JDA Status: " + jda.getStatus()); + ).addExecutor( + new HelpCmd(ec), + new ShutdownCmd() + ).addEnabledCacheFlags().addGatewayIntents().buildJDA(); } }