version 3.0
This commit is contained in:
1 parent
0b7c1bfe4f
commit
8d2287baa4
3 files changed
+5
-33
No files matched your search
@@ -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
|
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>me.bobert</groupId>
|
<groupId>me.bobert</groupId>
|
||||||
<artifactId>netneutrality</artifactId>
|
<artifactId>netneutrality</artifactId>
|
||||||
<version>2.0.1</version>
|
<version>3.0.0</version>
|
||||||
<name>netneutrality-discord-bot</name>
|
<name>netneutrality-discord-bot</name>
|
||||||
<description>Discord bot</description>
|
<description>Discord bot</description>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|||||||
@@ -29,13 +29,14 @@ import org.apache.logging.log4j.core.config.Configurator;
|
|||||||
|
|
||||||
public class NetNeutrality {
|
public class NetNeutrality {
|
||||||
private static final Logger logger = LogManager.getLogger(NetNeutrality.class);
|
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 NetNeutrality instance;
|
||||||
private static JDA jda;
|
private static JDA jda;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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");
|
String sentryDsn = Settings.getInstance().get("NETNEUTRALITY_SENTRY_DSN");
|
||||||
if (sentryDsn != null) {
|
if (sentryDsn != null) {
|
||||||
logger.info("Found Sentry DSN in config, setting up the SDK..");
|
logger.info("Found Sentry DSN in config, setting up the SDK..");
|
||||||
@@ -45,7 +46,7 @@ public class NetNeutrality {
|
|||||||
options.setEnvironment(env);
|
options.setEnvironment(env);
|
||||||
options.setTracesSampleRate(1.0);
|
options.setTracesSampleRate(1.0);
|
||||||
options.setDebug(false);
|
options.setDebug(false);
|
||||||
options.setRelease(Settings.getVersion());
|
options.setRelease(VERSION);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user