Skip to content

Commit c7b53d1

Browse files
committed
1.0.7
Java 17 Migrated to Java 21 Updated JDA LIB Added @nonnull to some variables
1 parent 96974c5 commit c7b53d1

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>i.fran2019.BotMaster</groupId>
88
<artifactId>BotMasterDC</artifactId>
9-
<version>1.0.6</version>
9+
<version>1.0.7</version>
1010
<repositories>
1111
<repository>
1212
<id>central</id>
@@ -58,8 +58,8 @@
5858
<artifactId>maven-compiler-plugin</artifactId>
5959
<version>3.11.0</version>
6060
<configuration>
61-
<source>17</source>
62-
<target>17</target>
61+
<source>21</source>
62+
<target>21</target>
6363
</configuration>
6464
</plugin>
6565
</plugins>
@@ -84,7 +84,7 @@
8484
<dependency>
8585
<groupId>net.dv8tion</groupId>
8686
<artifactId>JDA</artifactId>
87-
<version>5.0.0-beta.24</version>
87+
<version>5.3.1</version>
8888
</dependency>
8989
<dependency>
9090
<groupId>commons-io</groupId>

src/main/java/i/fran2019/BotMaster/BotMaster.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import i.fran2019.BotMaster.Managers.ConfigManager;
77
import i.fran2019.BotMaster.Managers.PluginManager;
88
import lombok.Getter;
9+
import lombok.NonNull;
910
import net.dv8tion.jda.api.JDA;
1011
import net.dv8tion.jda.api.JDABuilder;
1112
import net.dv8tion.jda.api.exceptions.InvalidTokenException;
@@ -16,14 +17,14 @@
1617
import redis.clients.jedis.UnifiedJedis;
1718

1819
public class BotMaster {
19-
@Getter private static Logger logger = LoggerFactory.getLogger(BotMaster.class);
20-
@Getter private static BotMaster botMaster;
20+
@NonNull @Getter private static Logger logger = LoggerFactory.getLogger(BotMaster.class);
21+
@NonNull @Getter private static BotMaster botMaster;
2122
@Getter private CommandManager commandManager;
2223
@Getter private PluginManager pluginManager;
2324
@Getter private MongoClient mongoClient;
2425
@Getter private UnifiedJedis redisClient;
2526
@Getter private ConfigManager configManager;
26-
@Getter private JDA jda;
27+
@NonNull @Getter private JDA jda;
2728

2829
public static void main(String[] args) {
2930
botMaster = new BotMaster();
@@ -37,8 +38,6 @@ private void start() {
3738
this.configManager = new ConfigManager();
3839
this.mongoClient = this.configManager.MONGODB_ENABLED ? MongoClients.create(this.configManager.MONGODB_URI) : null;
3940
this.redisClient = this.configManager.REDIS_ENABLED ? new UnifiedJedis(this.configManager.REDIS_URI) : null;
40-
botMaster.build();
41-
4241
this.commandManager = new CommandManager();
4342
this.pluginManager = new PluginManager();
4443
}

0 commit comments

Comments
 (0)