Skip to content

boticord/boticordjava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boticord-java

BotiCordJava

Java API wrapper for BotiCord, created by @megoRU.


📦 Installation (Maven)

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>

🚀 Examples

📄 Get All Comments by Bot ID

BotiCordAPI api = new BotiCordAPI.Builder()
        .token("your-token")
        .build();

List<UsersCommentSearch> comments = api.searchUserComments("808277484524011531");
comments.forEach(comment -> System.out.println(comment.getContent()));

📊 Update Stats

BotiCordAPI api = new BotiCordAPI.Builder()
        .token("your-token")
        .build();

BotStats botStats = new BotStats(200, 4, 1);
api.setBotStats("974297735559806986", botStats);

🔔 WebSocket Notifications

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());
    }
}

📚 Dependencies


🔗 Links


About

An API wrapper for BotiCord API written in Java (by @megoRU)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages