BotiCordJava
An API wrapper for https://boticord.top/ written in Java by @megoRU
Maven
https://jitpack.io/#megoRU/boticordjava
<repositories>
<repository>
<id>jitpack.ioid>
<url>https://jitpack.iourl>
repository>
repositories>
<dependency>
<groupId>com.github.megoRUgroupId>
<artifactId>boticordjavaartifactId>
<version>v2.6version>
dependency>
Examples
Get All Comments by bot ID
public static void main(String[] args) {
BotiCordAPI api = new BotiCordAPIImpl("YOUR_TOKEN", "BOT_ID");
Comments[] comments = api.getBotComments();
for (int i = 0; i < comments.length; i++) {
System.out.println(comments[i].getText());
System.out.println(comments[i].getUserId());
}
}
Update Stats
public static void main(String[] args) {
BotiCordAPI api = new BotiCordAPIImpl("YOUR_TOKEN", "BOT_ID");
int servers = ...; // the server count
int shards = ...; // shards count
int users = ...; // the amount of users
api.setStats(servers, shards, users);
}