This commit is contained in:
Gregor Bigalke 2019-11-04 08:59:47 +01:00
parent e23b6bc421
commit 7d9e08b975
No known key found for this signature in database
6 changed files with 35 additions and 9 deletions

2
.gitignore vendored
View file

@ -26,3 +26,5 @@ hs_err_pid*
SECRETS.java
SECRETSsss.java
Discord-Data-Mining.iml
target/classes/META-INF/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -1,2 +1,2 @@
# Discord-Data-Mining
The official Discord-Data-Mining
The official Discord-Data-Mining Rewrite

View file

@ -1,5 +1,6 @@
package discord.data.mining;
import discord.data.mining.listener.ReadyListener;
import net.dv8tion.jda.api.AccountType;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
@ -11,9 +12,9 @@ import static discord.data.mining.SECRETS.*;
public class DataMining {
public String MessageLog = "462507170383134720";
public String ReactionLog = "462524422713245696";
public String ConsoleLog = "462556910206320640";
public static String MessageLog = "462507170383134720";
public static String ReactionLog = "462524422713245696";
public static String ConsoleLog = "462556910206320640";
public static ArrayList<JDA> clients = new ArrayList<>();
public static ArrayList<JDA> bots = new ArrayList<>();
public static ArrayList<JDA> manager = new ArrayList<>();
@ -26,14 +27,16 @@ public class DataMining {
Thread.sleep(1500);
for (String Token : clienttokens) {
clients.add(new JDABuilder(AccountType.CLIENT).setToken(Token).setAutoReconnect(true).build());
}
for (String Token : botTokens) {
bots.add(new JDABuilder(AccountType.BOT).setAutoReconnect(true).setToken(Token).build());
}
for (String Token : clienttokens) {
clients.add(new JDABuilder(AccountType.CLIENT).setAutoReconnect(true).setToken(Token).addEventListeners(new ReadyListener()).build());
}
} catch (Exception e) {
e.printStackTrace();
}

View file

@ -0,0 +1,22 @@
package discord.data.mining.listener;
import discord.data.mining.DataMining;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.events.ReadyEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import java.awt.*;
public class ReadyListener extends ListenerAdapter {
public void onReady(ReadyEvent event) {
event.getJDA().getTextChannelById(DataMining.ConsoleLog).sendMessage(new EmbedBuilder()
.setTitle("Client started!")
.setThumbnail(event.getJDA().getSelfUser().getAvatarUrl())
.setColor(Color.GREEN)
.addField("As Mention", event.getJDA().getSelfUser().getAsTag(), true)
.addField("ID", event.getJDA().getSelfUser().getId(), true)
.addField("Guilds", String.valueOf(event.getJDA().getGuilds().size()), true)
.build()).queue();
}
}

View file

@ -1 +0,0 @@
0 0 0 0 0 0 0 0 0 0 0 0 0 50 50 50 50 50 112175 114219 33063 0 0