v1.1.1 #386
1 changed files with 17 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ public class BotList {
|
||||||
private static String BotListSpace = "https://api.botlist.space/v1/bots/637002314162372639";
|
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 DiscordBots2 = "https://discord.bots.gg/api/v1/bots/637002314162372639/stats";
|
||||||
private static String CloudList = "https://www.cloudlist.xyz/api/stats/637002314162372639";
|
private static String CloudList = "https://www.cloudlist.xyz/api/stats/637002314162372639";
|
||||||
|
private static String ArcaneBotCenter = "https://arcane-botcenter.xyz/api/637002314162372639/stats";
|
||||||
|
|
||||||
private Config config;
|
private Config config;
|
||||||
|
|
||||||
|
|
@ -57,6 +58,7 @@ public class BotList {
|
||||||
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());
|
||||||
|
|
||||||
RequestBody body = RequestBody.create(MediaType.parse("application/json"), json.toString());
|
RequestBody body = RequestBody.create(MediaType.parse("application/json"), json.toString());
|
||||||
|
|
||||||
|
|
@ -209,6 +211,21 @@ public class BotList {
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
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