Greg dev #67

Merged
greg6775 merged 2 commits from greg-dev into master 2019-11-16 22:03:38 +01:00
2 changed files with 19 additions and 0 deletions
Showing only changes of commit a20b7fac38 - Show all commits

View file

@ -117,4 +117,8 @@ public class Config {
public String getYetAnotherBotListToken() {
return config.getJSONObject("Tokens").getString("YetAnotherBotList");
}
public String getDiscordExtremeListToken() {
return config.getJSONObject("Tokens").getString("DiscordExtremeList");
}
}

View file

@ -24,6 +24,7 @@ public class BotList {
private static String DiscordBestBots = "https://discordsbestbots.xyz/api/bots/637002314162372639/stats";
private static String DiscordBoats = "https://discord.boats/api/bot/637002314162372639";
private static String YetAnotherBotList = "https://yabl.xyz/api/bot/637002314162372639/stats";
private static String DiscordExtremeList = "https://discordextremelist.xyz/api/bot/637002314162372639";
private Config config;
@ -130,6 +131,20 @@ public class BotList {
} catch (IOException e) {
e.printStackTrace();
}
// Discord Extreme List
Request discordextremelist = new Request.Builder()
.url(DiscordExtremeList)
.post(body)
.addHeader("Authorizaion", config.getDiscordExtremeListToken())
.build();
try {
new OkHttpClient().newCall(discordextremelist).execute().close();
} catch (IOException e) {
e.printStackTrace();
}
}
}