Java API wrapper for BotiCord, created by @megoRU.
Add JitPack repository and dependency:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.megoRU</groupId>
<artifactId>boticordjava</artifactId>
<version>v6.0.1</version>
</dependency>
BotiCordAPI api = new BotiCordAPI.Builder()
.token("your-token")
.build();
List<UsersCommentSearch> comments = api.searchUserComments("808277484524011531");
comments.forEach(comment -> System.out.println(comment.getContent()));
BotiCordAPI api = new BotiCordAPI.Builder()
.token("your-token")
.build();
BotStats botStats = new BotStats(200, 4, 1);
api.setBotStats("974297735559806986", botStats);
public class CommentListener extends ListenerAdapter {
@Override
public void onCommentEvent(@NotNull NotificationData event) {
System.out.println("Event type: " + event.getType());
}
}
public class Main {
public static void main(String[] args) {
BoticordWebSocket socket = new BoticordWebSocket("your-token");
socket.addListener(new CommentListener());
}
}