Adding Discord Boats

This commit is contained in:
GregTCLTK 2019-11-03 22:03:21 +01:00
parent 64c0352bba
commit 6f02672830
No known key found for this signature in database
GPG key ID: 6C090B9A5D4B3734

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();
}
}
}