Greg dev #67
2 changed files with 19 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue