From 5d34048ae6e06f09705670b81eb532dd7f76498a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Thu, 25 Aug 2022 21:51:00 +0200 Subject: [PATCH] Add basic project structure with Maven and JDA --- .gitignore | 2 + pom.xml | 52 +++++++++++++++++++ .../wtf/beatrice/hidekobot/HidekoBot.java | 21 ++++++++ 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/wtf/beatrice/hidekobot/HidekoBot.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07827cc --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +target/ +.idea/ \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..18f67f4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,52 @@ + + + 4.0.0 + + wtf.beatrice.hidekobot + HidekoBot + 1.0-SNAPSHOT + + + 16 + 16 + UTF-8 + + + + + net.dv8tion + JDA + 5.0.0-alpha.18 + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + package + + single + + + + + wtf.beatrice.hidekobot.HidekoBot + + + + jar-with-dependencies + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/wtf/beatrice/hidekobot/HidekoBot.java b/src/main/java/wtf/beatrice/hidekobot/HidekoBot.java new file mode 100644 index 0000000..9a0d814 --- /dev/null +++ b/src/main/java/wtf/beatrice/hidekobot/HidekoBot.java @@ -0,0 +1,21 @@ +package wtf.beatrice.hidekobot; + +import net.dv8tion.jda.api.JDA; +import net.dv8tion.jda.api.JDABuilder; + +import javax.security.auth.login.LoginException; + +public class HidekoBot +{ + + public static void main(String[] args) + { + try + { + JDA jda = JDABuilder.createDefault("token").build(); + } catch (LoginException e) + { + throw new RuntimeException(e); + } + } +}