buzzk 2.1.6 → 2.1.8

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/lib/chat.js CHANGED
@@ -108,7 +108,7 @@ class chzzkChat {
108
108
  data = JSON.parse(data);
109
109
 
110
110
  let hasMod = false;
111
- if (data.profile || data.profile.badges) {
111
+ if (data.profile && data.profile.badges) {
112
112
  for (let o in data.profile.badges) {
113
113
  if (data.profile.badges[o].imageUrl == "https://ssl.pstatic.net/static/nng/glive/icon/streamer.png") hasMod = true;
114
114
  if (data.profile.badges[o].imageUrl == "https://ssl.pstatic.net/static/nng/glive/icon/manager.png") hasMod = true;
package/lib/live.js CHANGED
@@ -89,7 +89,7 @@ async function getDetail (channelID) {
89
89
  async function getStatus (channelID) {
90
90
  return new Promise(async (resolve, reject) => {
91
91
 
92
- let res = await reqChzzk("polling/v2/channels/" + channelID + "/live-status");
92
+ let res = await reqChzzk("polling/v3/channels/" + channelID + "/live-status?includePlayerRecommendContent=false");
93
93
  if (res.code != 200 || !res.content) return resolve(null);
94
94
  res = res.content;
95
95
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "2.1.6",
4
+ "version": "2.1.8",
5
5
  "description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",