- 0.0.12 이하 버전을 사용하신다면, 과거 버전의 문서 파일을 확인해주세요!
/ 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!
repositories {
mavenCentral()
}
dependencies {
implementation("io.github.R2turnTrue:chzzk4j:0.0.12")
}
Check at our docs!
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();
- 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
- 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