From 09d0edddff6bd3b74d4400fbb4842635c4435e1d Mon Sep 17 00:00:00 2001 From: anthorob Date: Sun, 9 Mar 2025 15:55:00 -0400 Subject: [PATCH] version 3.0 --- CHANGELOG.md | 29 ------------------- pom.xml | 2 +- .../bobert/netneutrality/NetNeutrality.java | 7 +++-- 3 files changed, 5 insertions(+), 33 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 8a02ef4..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,29 +0,0 @@ -## 2.0.1 (2024-07-14) - -### Refactor - -- fix inspection errors for deprecated calls and concatenation - -## 2.0.0 (2024-07-14) - -### BREAKING CHANGE - -- removed TrackLoader amd LoadableSongs - -### Feat - -- **Settings**: add helpers to get version number of bot - -### Fix - -- fix relection package to new path -- fix wrongly named environment variables -- bump youtube-source to 1.4.0 - -### Refactor - -- Remove unused command -- add release to Sentry config -- remove convoluted TrackLoader and LoadableSongs abstraction -- **LogHandler**: use the exception itself instead of a string for buildSentryErrorMessage -- change package path to reflect group id of pom.xml diff --git a/pom.xml b/pom.xml index abe1e5e..5fbbc9e 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.bobert netneutrality - 2.0.1 + 3.0.0 netneutrality-discord-bot Discord bot jar diff --git a/src/main/java/me/bobert/netneutrality/NetNeutrality.java b/src/main/java/me/bobert/netneutrality/NetNeutrality.java index a29b212..980fbdb 100644 --- a/src/main/java/me/bobert/netneutrality/NetNeutrality.java +++ b/src/main/java/me/bobert/netneutrality/NetNeutrality.java @@ -29,13 +29,14 @@ import org.apache.logging.log4j.core.config.Configurator; public class NetNeutrality { private static final Logger logger = LogManager.getLogger(NetNeutrality.class); - public static final String VERSION = Settings.getInstance().getMavenVersion(); + public static final String VERSION = Settings.getVersion(); private static NetNeutrality instance; private static JDA jda; public static void main(String[] args) { - String env = Settings.getInstance().get("NETNEUTRALITY_BOT_ENV", "dev"); + System.out.println("Starting NetNeutrality v" + VERSION); + String env = Settings.getInstance().get("NETNEUTRALITY_BOT_ENV", "dev"); String sentryDsn = Settings.getInstance().get("NETNEUTRALITY_SENTRY_DSN"); if (sentryDsn != null) { logger.info("Found Sentry DSN in config, setting up the SDK.."); @@ -45,7 +46,7 @@ public class NetNeutrality { options.setEnvironment(env); options.setTracesSampleRate(1.0); options.setDebug(false); - options.setRelease(Settings.getVersion()); + options.setRelease(VERSION); }); }