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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1fb6ab9 · Mar 9, 2025
Mar 9, 2025
Jun 14, 2024
Feb 8, 2025
Mar 9, 2025
Jan 4, 2025
Dec 31, 2023
Feb 1, 2024
Mar 9, 2025
Mar 9, 2025
Jan 4, 2025
Dec 30, 2023
Jun 14, 2024
Jun 14, 2024
Dec 30, 2023
Dec 31, 2023
Dec 30, 2023

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.1.1")
}

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

references

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages