Hax dev #50

Merged
greg6775 merged 5 commits from hax-dev into master 2019-11-04 18:18:54 +01:00
Showing only changes of commit 6f02672830 - Show all commits

View file

@ -22,6 +22,7 @@ public class BotList {
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 String DiscordBoats = "https://discord.boats/api/bot/637002314162372639";
private static JSONObject json = new JSONObject();
@ -100,6 +101,21 @@ public class BotList {
} catch (IOException e) {
e.printStackTrace();
}
// Discord Boats
Request discordboats = new Request.Builder()
.url(DiscordBoats)
.post(body)
.addHeader("Authorization", config.getString("DiscordBoats"))
.build();
try {
new OkHttpClient().newCall(discordboats).execute().close();
System.out.println("Successfully posted count to Discord Boats!");
} catch (IOException e) {
e.printStackTrace();
}
}
}