
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
뿌지직은 치지직 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리 입니다.
[!CAUTION] 현재 버전은 공식 API와 비공식 API를 혼용하여 사용합니다. 공식 API로 대체 가능한 기능은 모두 공식 API를 이용할 예정입니다.
[!WARNING]
- 비공식 API 전용 모듈은 더 이상 지원되지 않습니다.
- 비공식 API로만 이루어진 모듈을 사용하시려면
npm install buzzk@1.11.3- (지원되지 않음 / 권장되지 않음)
buzzk.video
![]() | 삭제 |
|---|---|
| buzzk.video.getList(channelID, size) |
![]() | 삭제 |
|---|---|
| buzzk.video.get(no) |
buzzk.oauth
![]() | buzzk.oauth.get("Code 값") |
|---|---|
| buzzk.oauth.get("Code 값", "State 값") |
buzzkChat
![]() | new buzzkChat("channelID 값") |
|---|---|
| new buzzkChat("accessToken 값") |
![]() | 삭제 |
|---|---|
| (chat).getRecentChat() |
buzzkChat.onMessage
채팅 여러개를 한 번에 받던 구조 (data[o].message) (for 문으로 data[o] 돌리던 구조)에서 채팅 하나 씩 받는 구조로 변경 (data.message)
![]() | 삭제 |
|---|---|
| (callback).author.imageURL |
buzzkChat.onDonation
![]() | 삭제 |
|---|---|
| (callback).author.imageURL |
![]() | 삭제 |
|---|---|
| (callback).time |
buzzk.live
![]() | 삭제 |
|---|---|
| buzzk.live.getAccess() |
buzzk.auth
![]() | 추가 |
|---|---|
| buzzk.auth |
buzzk.oauth
![]() | 추가 |
|---|---|
| buzzk.oauth.get |
![]() | 추가 |
|---|---|
| buzzk.oauth.refresh |
![]() | 추가 |
|---|---|
| buzzk.channel.resolve |
buzzk.channel.get
![]() | (return).channel.description |
|---|
![]() | (return).channel.isLive |
|---|
npm install buzzkconst buzzk = require("buzzk");const buzzk = require("buzzk");
buzzk.auth("ClientID 값", "ClientSecret 값");
buzzk.login("NID_AUT 쿠키 값", "NID_SES 쿠키 값");
//buzzk.live.getDetail, buzzk.channel.follow, unfollow 시에만 사용.
const buzzkChat = buzzk.chat;
async function test () {
let oauth = buzzk.oauth.get("code 값", "state 값");
let chat = new buzzkChat(oauth.access);
await chat.connect(); //채팅창 연결
chat.onMessage(async (data) => { //채팅이 왔을 때
console.log(data.message);
if (data.message == "!ping") await chat.send("pong!");
//채팅 보내기
if (data.message == "!공지") await chat.setNotice("테스트!");
//채팅 상단 고정 (공지)
let userInfo = await chat.getUserInfo(data.author.id);
console.log(userInfo);
//채팅 보낸 유저의 정보
});
chat.onDonation(async (data) => { //후원이 왔을 때
//TODO
});
chat.onDisconnect(async () => { //채팅창 연결이 끊겼을 때
//TODO
});
}
test();
✅ Official API
buzzk.auth("ClientID 값", "ClientSecret 값");
https://developers.chzzk.naver.com/application 네이버 치지직 개발자 센터에서 등록 후 사용 가능합니다. ✅ Official API 표기가 있는 모든 함수에서 사용됩니다.
dotenv와 함께 사용하는 것을 매우 권장합니다.
buzzk.auth(process.env.CLIENT_ID, process.env.CLIENT_SECRET);
buzzk.login("NID_AUT 쿠키 값", "NID_SES 쿠키 값");
해당 함수는 이제 buzzk.live.getDetail, buzzk.channel.follow, unfollow 시에만 사용됩니다. dotenv와 함께 사용하는 것을 매우 권장합니다.
buzzk.login(process.env.NID_AUT, process.env.NID_SES);
✅ Official API
let oauth = await buzzk.oauth.get("Code 값", "State 값");
console.log(oauth);
✅ Official API
let oauth = await buzzk.oauth.refresh("refreshToken 값");
console.log(oauth);
✅ Official API
let oauth = await buzzk.oauth.resolve("accessToken 값");
console.log(oauth);
let chSearch = await buzzk.channel.search("녹두로로");
console.log(chSearch);
✅ Official API
let channel = await buzzk.channel.get("channelID 값");
console.log(channel);
await buzzk.channel.follow("channelID 값");
await buzzk.channel.unFollow("channelID 값");
const lvDetail = await buzzk.live.getDetail("channelID 값");
console.log(lvDetail);
const lvStatus = await buzzk.live.getStatus("channelID 값");
console.log(lvStatus);
✅ Official API
const buzzkChat = buzzk.chat;
let chat = new buzzkChat("accessToken 값");
await chat.connect(); //채팅창 연결
✅ Official API
chat.onMessage((data) => { //채팅이 왔을 때
console.log(data);
});
✅ Official API
chat.onDonation((data) => { //도네이션이 왔을 때
console.log(data);
});
✅ Official API
chat.onDisconnect(() => { //채팅창 연결이 끊겼을 때
//TODO
});
✅ Official API
await chat.send("ㅋㅋㅋㅋㅋㅋ"); //채팅 보내기 (login 후에만 가능)
let userInfo = await chat.getUserInfo("유저의 channelID 값");
await chat.disconnect(); //채팅창 연결 끊기
const videoList = await buzzk.video.getList("channelID 값", 24); //channelID 값, 가져올 갯수
console.log(videoList);
const video = await buzzk.video.get("no 값"); //videoList 에서 return 된 no 값
console.log(video);
console.log(video.videoURL[720]);
FAQs
뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.
The npm package buzzk receives a total of 48 weekly downloads. As such, buzzk popularity was classified as not popular.
We found that buzzk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.