Skip to content

Commit

Permalink
BotTemplate - Update to JDA alpha 19
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Sep 16, 2022
1 parent 836ba97 commit dfc4ec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions BotTemplate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-alpha.18</version>
<version>5.0.0-alpha.19</version>
<exclusions>
<exclusion>
<groupId>club.minnced</groupId>
Expand All @@ -71,13 +71,13 @@
<dependency>
<groupId>io.github.freya022</groupId>
<artifactId>BotCommands</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.4.1</version>
<version>42.5.0</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
Expand Down
3 changes: 1 addition & 2 deletions BotTemplate/src/main/java/com/freya02/bot/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import net.dv8tion.jda.api.requests.GatewayIntent;
import org.slf4j.Logger;

import javax.security.auth.login.LoginException;
import java.io.IOException;
import java.sql.SQLException;

Expand Down Expand Up @@ -47,7 +46,7 @@ public static void main(String[] args) {
.textCommandBuilder(textCommandsBuilder -> textCommandsBuilder.addPrefix(config.getPrefix()))
.setComponentManager(new DefaultComponentManager(componentsDB::getConnection))
.build(jda, "com.freya02.bot.commands"); //Registering listeners is taken care of by the lib
} catch (IOException | InterruptedException | LoginException | SQLException e) {
} catch (IOException | InterruptedException | SQLException e) {
LOGGER.error("Unable to start the bot", e);

System.exit(-1);
Expand Down

0 comments on commit dfc4ec2

Please sign in to comment.