Skip to content

Unofficial Java API library of CHZZK (치지직, the video streaming service of Naver)

License

Notifications You must be signed in to change notification settings

R2turnTrue/chzzk4j

Repository files navigation

chzzk4j

/ Example Minecraft Plugin / Discord Server

Unofficial Java API library of CHZZK (치지직, the video streaming service of Naver)

  • This library is not completed. Please contribute a lot through Pull-Request!
  • Please feel free to create an issue if you have any problems!

installation

repositories {
    mavenCentral()
}

dependencies {
    implementation("io.github.R2turnTrue:chzzk4j:0.0.12")
}

usage

Check at our docs!

examples

minimal chat example

ChzzkClient client = new ChzzkClientBuilder("API_CLIENT_ID", "API_SECRET")
        .build();
ChzzkChat chat = new ChzzkChatBuilder(client,
        "CHANNEL_ID")
        .build();

chat.on(ConnectEvent.class, (evt) -> {
    System.out.println("connected to chat :)");
});

chat.on(ChatMessageEvent.class, (evt) -> {
    ChatMessage msg = evt.getMessage();
    
    if (msg.getProfile() == null) {
        System.out.println(String.format("익명: %s", msg.getContent()));
        return;
    }

    System.out.println(
            String.format("[Chat] %s: %s",
                msg.getProfile().getNickname(),
                msg.getContent()));
});

chat.connectBlocking();

features

  • get channel information & rules
  • get current user's information
  • get channel followed status
  • async chat integration (read/send)
  • get recommendation channels
  • fix invalid json (chat)
  • load emoji pack
  • get live status
  • get live detail

need to implement

  • write javadocs of all methods/classes/etc..
  • parse emoji from chat message
  • get following channels of user that logged in
  • get video information
  • get cheese ranking

About

Unofficial Java API library of CHZZK (치지직, the video streaming service of Naver)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages