Greg dev #43

Merged
greg6775 merged 4 commits from greg-dev into master 2019-11-03 12:03:52 +01:00
Showing only changes of commit 41fced853e - Show all commits

View file

@ -21,6 +21,7 @@ public class BotList {
private static String MythicalBotList = "https://mythicalbots.xyz/api/bot/637002314162372639";
private static String BotsForDiscord = "https://botsfordiscord.com/api/bot/637002314162372639";
private static String DiscordBotList = "https://discordbotlist.com/api/bots/637002314162372639/stats";
private static String DiscordBestBots = "https://discordsbestbots.xyz/api/bots/637002314162372639/stats";
private static JSONObject json = new JSONObject();
@ -84,6 +85,21 @@ public class BotList {
} catch (IOException e) {
e.printStackTrace();
}
// Discord Best Bots
Request discordbestbots = new Request.Builder()
.url(DiscordBestBots)
.post(body)
.addHeader("Authorization", config.getString("DiscordBestBots"))
.build();
try {
new OkHttpClient().newCall(discordbestbots).execute().close();
System.out.println("Successfully posted count to Discord Best Bots!");
} catch (IOException e) {
e.printStackTrace();
}
}
}