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();
}
}