Added Discord Best Bots
This commit is contained in:
parent
10658cf8bc
commit
41fced853e
1 changed files with 16 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ public class BotList {
|
||||||
private static String MythicalBotList = "https://mythicalbots.xyz/api/bot/637002314162372639";
|
private static String MythicalBotList = "https://mythicalbots.xyz/api/bot/637002314162372639";
|
||||||
private static String BotsForDiscord = "https://botsfordiscord.com/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 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();
|
private static JSONObject json = new JSONObject();
|
||||||
|
|
||||||
|
|
@ -84,6 +85,21 @@ public class BotList {
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue