It's working now!

This commit is contained in:
Gregor Bigalke 2019-12-14 15:19:09 +01:00
parent f54baf32c5
commit 5b0543ce17
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -35,7 +35,7 @@
<dependency> <dependency>
<groupId>net.dv8tion</groupId> <groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId> <artifactId>JDA</artifactId>
<version>LATEST</version> <version>4.0.0_73</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View file

@ -6,6 +6,7 @@ import discord.data.mining.listener.ReadyListener;
import net.dv8tion.jda.api.AccountType; import net.dv8tion.jda.api.AccountType;
import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder; import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.utils.ChunkingFilter;
import java.util.ArrayList; import java.util.ArrayList;
@ -30,11 +31,11 @@ public class DataMining {
Thread.sleep(1500); Thread.sleep(1500);
for (String Token : botTokens) { for (String Token : botTokens) {
bots.add(new JDABuilder(AccountType.BOT).setAutoReconnect(true).setToken(Token).addEventListeners(new GenericEventListener()).build()); bots.add(new JDABuilder(AccountType.BOT).setAutoReconnect(true).setToken(Token).build());
} }
for (String Token : clientTokens) { for (String Token : clientTokens) {
clients.add(new JDABuilder(AccountType.CLIENT).setAutoReconnect(true).setToken(Token).addEventListeners(new ReadyListener()).build()); clients.add(new JDABuilder(AccountType.CLIENT).setToken(Token).setAutoReconnect(true).setChunkingFilter(ChunkingFilter.NONE).addEventListeners(new ReadyListener(), new GenericEventListener()).build());
} }
} catch (Exception e) { } catch (Exception e) {