buzzk 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -49,6 +49,9 @@
49
49
 
50
50
  buzzkChat.onMessage
51
51
 
52
+ > 채팅 여러개를 한 번에 받던 구조 (data[o].message) (for 문으로 data[o] 돌리던 구조)에서
53
+ > 채팅 하나 씩 받는 구조로 변경 (data.message)
54
+
52
55
  | <img src="https://github.com/Emin-G/Img/blob/main/tags/tag_delete-min.png?raw=true" alt="BUZZK" width="70"> | 삭제 |
53
56
  |--|--|
54
57
  | | (callback).author.imageURL |
@@ -143,7 +146,7 @@
143
146
 
144
147
  let oauth = buzzk.oauth.get("code 값");
145
148
 
146
- let chat = new buzzkChat(oauth.accessToken);
149
+ let chat = new buzzkChat(oauth.access);
147
150
  await chat.connect(); //채팅창 연결
148
151
 
149
152
  chat.onMessage(async (data) => { //채팅이 왔을 때
package/lib/chat.js CHANGED
@@ -116,6 +116,7 @@ class chzzkChat {
116
116
  }
117
117
 
118
118
  let chatData = new chzzkChatData(data.senderChannelId, data.profile.nickname, hasMod, data.content, data.emojis, data.messageTime);
119
+ if (!this.#callbacks.message) return;
119
120
  return this.#callbacks.message(chatData);
120
121
  });
121
122
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",