Remove no longer active bot lists
This commit is contained in:
parent
53fc632cea
commit
09bf327640
2 changed files with 30 additions and 186 deletions
|
|
@ -11,19 +11,7 @@
|
||||||
"Tokens": {
|
"Tokens": {
|
||||||
"BotToken": "",
|
"BotToken": "",
|
||||||
"Giphy": "",
|
"Giphy": "",
|
||||||
"GitHub": "",
|
"GitHub": ""
|
||||||
"MythicalBotList": "",
|
|
||||||
"BotsForDiscord": "",
|
|
||||||
"DiscordBotList": "",
|
|
||||||
"DiscordBoats": "",
|
|
||||||
"YetAnotherBotList": "",
|
|
||||||
"DiscordExtremeList": "",
|
|
||||||
"DiscordBotReviews": "",
|
|
||||||
"DiscordBots": "",
|
|
||||||
"BotListSpace": "",
|
|
||||||
"DiscordBots2": "",
|
|
||||||
"CloudList": "",
|
|
||||||
"Arcane": ""
|
|
||||||
},
|
},
|
||||||
"Clyde": ""
|
"Clyde": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,16 +30,7 @@ import java.nio.file.Paths;
|
||||||
|
|
||||||
public class BotList {
|
public class BotList {
|
||||||
|
|
||||||
private static String MythicalBotList = "https://mythicalbots.xyz/api/bot/637002314162372639";
|
private static String BotList = "https://";
|
||||||
private static String BotsForDiscord = "https://botsfordiscord.com/api/bot/637002314162372639";
|
|
||||||
private static String DiscordBotList = "https://discordbotlist.com/api/bots/637002314162372639/stats";
|
|
||||||
private static String DiscordBoats = "https://discord.boats/api/v2/bot/637002314162372639";
|
|
||||||
private static String YetAnotherBotList = "https://yabl.xyz/api/bot/637002314162372639/stats";
|
|
||||||
private static String DiscordExtremeList = "https://api.discordextremelist.xyz/v1/bot/637002314162372639";
|
|
||||||
private static String DiscordBots = "https://top.gg/api/bots/637002314162372639/stats";
|
|
||||||
private static String BotListSpace = "https://api.botlist.space/v1/bots/637002314162372639";
|
|
||||||
private static String DiscordBots2 = "https://discord.bots.gg/api/v1/bots/637002314162372639/stats";
|
|
||||||
private static String ArcaneBotCenter = "https://arcane-center.xyz/api/637002314162372639/stats";
|
|
||||||
|
|
||||||
private Config config;
|
private Config config;
|
||||||
|
|
||||||
|
|
@ -48,168 +39,33 @@ public class BotList {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void post() {
|
public void post() {
|
||||||
if (Files.notExists(Paths.get("./DEBUG"))) {
|
// if (Files.notExists(Paths.get("./DEBUG"))) {
|
||||||
JSONObject json = new JSONObject();
|
// JSONObject json = new JSONObject();
|
||||||
json.put("server_count", Hadder.shardManager.getGuilds().size());
|
// json.put("server_count", Hadder.shardManager.getGuilds().size());
|
||||||
json.put("guildCount", Hadder.shardManager.getGuilds().size());
|
// json.put("guildCount", Hadder.shardManager.getGuilds().size());
|
||||||
json.put("guilds", Hadder.shardManager.getGuilds().size());
|
// json.put("guilds", Hadder.shardManager.getGuilds().size());
|
||||||
json.put("count", Hadder.shardManager.getGuilds().size());
|
// json.put("count", Hadder.shardManager.getGuilds().size());
|
||||||
json.put("users", Hadder.shardManager.getUsers().size());
|
// json.put("users", Hadder.shardManager.getUsers().size());
|
||||||
json.put("shard_count", Hadder.shardManager.getShards().size());
|
// json.put("shard_count", Hadder.shardManager.getShards().size());
|
||||||
json.put("shardCount", Hadder.shardManager.getShards().size());
|
// json.put("shardCount", Hadder.shardManager.getShards().size());
|
||||||
json.put("member_count", Hadder.shardManager.getUsers().size());
|
// json.put("member_count", Hadder.shardManager.getUsers().size());
|
||||||
|
//
|
||||||
RequestBody body = RequestBody.create(MediaType.parse("application/json"), json.toString());
|
// RequestBody body = RequestBody.create(MediaType.parse("application/json"), json.toString());
|
||||||
|
//
|
||||||
// Mythical Bot List
|
// // Mythical Bot List
|
||||||
|
//
|
||||||
Request mythicalbotlist = new Request.Builder()
|
// Request botlist = new Request.Builder()
|
||||||
.url(MythicalBotList)
|
// .url(BotList)
|
||||||
.post(body)
|
// .post(body)
|
||||||
.addHeader("Authorization", config.getMythicalBotListToken())
|
// .addHeader("Authorization", config.getBotListToken())
|
||||||
.build();
|
// .build();
|
||||||
|
//
|
||||||
try {
|
// try {
|
||||||
new OkHttpClient().newCall(mythicalbotlist).execute().close();
|
// new OkHttpClient().newCall(botlist).execute().close();
|
||||||
System.out.println("Successfully posted count for the Mythical Bot List!");
|
// System.out.println("Successfully posted count for the !");
|
||||||
} catch (IOException e) {
|
// } catch (IOException e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
// BotsForDiscord
|
|
||||||
|
|
||||||
Request botsfordiscord = new Request.Builder()
|
|
||||||
.url(BotsForDiscord)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getBotsForDiscordToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(botsfordiscord).execute().close();
|
|
||||||
System.out.println("Successfully posted count to Bots For Discord!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discord Bot List
|
|
||||||
|
|
||||||
Request discordbotlist = new Request.Builder()
|
|
||||||
.url(DiscordBotList)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", "Bot " + config.getDiscordBotListToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(discordbotlist).execute().close();
|
|
||||||
System.out.println("Successfully posted count for the Discord Bot List!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discord Boats
|
|
||||||
|
|
||||||
Request discordboats = new Request.Builder()
|
|
||||||
.url(DiscordBoats)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getDiscordBoatsToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(discordboats).execute().close();
|
|
||||||
System.out.println("Successfully posted count to Discord Boats!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Yet Another Bot List
|
|
||||||
|
|
||||||
Request yetanotherbotlist = new Request.Builder()
|
|
||||||
.url(YetAnotherBotList)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getYetAnotherBotListToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(yetanotherbotlist).execute().close();
|
|
||||||
System.out.println("Successfully posted count to Yet Another Bot List!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discord Extreme List
|
|
||||||
|
|
||||||
Request discordextremelist = new Request.Builder()
|
|
||||||
.url(DiscordExtremeList)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getDiscordExtremeListToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(discordextremelist).execute().close();
|
|
||||||
System.out.println("Successfully posted count for the Discord Extreme List!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discord Bots
|
|
||||||
|
|
||||||
Request discordbots = new Request.Builder()
|
|
||||||
.url(DiscordBots)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getDiscordBotsToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(discordbots).execute().close();
|
|
||||||
System.out.println("Successfully posted count to Discord Bots!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// BotListSpace
|
|
||||||
|
|
||||||
Request botlistspace = new Request.Builder()
|
|
||||||
.url(BotListSpace)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getBotListSpaceToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(botlistspace).execute().close();
|
|
||||||
System.out.println("Successfully posted count to BotList.Space!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discord Bots 2
|
|
||||||
|
|
||||||
Request discordbots2 = new Request.Builder()
|
|
||||||
.url(DiscordBots2)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getDiscordBots2Token())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(discordbots2).execute().close();
|
|
||||||
System.out.println("Successfully posted count to discord.bots.gg!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Arcane Bot Center
|
|
||||||
|
|
||||||
Request arcane = new Request.Builder()
|
|
||||||
.url(ArcaneBotCenter)
|
|
||||||
.post(body)
|
|
||||||
.addHeader("Authorization", config.getArcaneToken())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
new OkHttpClient().newCall(arcane).execute().close();
|
|
||||||
System.out.println("Successfully posted count to the Arcane Bot Center!");
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue