Skip to content

Commit

Permalink
Fix testbot compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sedmelluq committed Jun 28, 2021
1 parent 888024a commit 5f53669
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion testbot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ plugins {

dependencies {
implementation(project(":main"))
implementation("net.dv8tion:JDA:4.2.1_253")
implementation("net.dv8tion:JDA:4.3.0_285")
implementation("net.iharder:base64:2.3.9")
runtimeOnly("ch.qos.logback:logback-classic:1.1.8")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import net.dv8tion.jda.api.JDABuilder;

import static net.dv8tion.jda.api.requests.GatewayIntent.GUILD_MESSAGES;
import static net.dv8tion.jda.api.requests.GatewayIntent.GUILD_VOICE_STATES;

public class Bootstrap {
public static void main(String[] args) throws Exception {
new JDABuilder()
.setToken(System.getProperty("botToken"))
JDABuilder.create(System.getProperty("botToken"), GUILD_MESSAGES, GUILD_VOICE_STATES)
.addEventListeners(new BotApplicationManager())
.build();
}
Expand Down

0 comments on commit 5f53669

Please sign in to comment.