buzzk 1.9.2 → 1.9.4
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/LICENSE +20 -20
- package/lib/chat.js +4 -2
- package/package.json +36 -36
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Emin-G
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Emin-G
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/lib/chat.js
CHANGED
|
@@ -37,6 +37,8 @@ class chzzkChat {
|
|
|
37
37
|
|
|
38
38
|
//SetPolling
|
|
39
39
|
if (!this.#pollingStatus) {
|
|
40
|
+
this.#pollingStatus = true;
|
|
41
|
+
|
|
40
42
|
setTimeout(async () => {
|
|
41
43
|
this.#polling();
|
|
42
44
|
}, 30000);
|
|
@@ -506,14 +508,14 @@ class chzzkChat {
|
|
|
506
508
|
}
|
|
507
509
|
|
|
508
510
|
async #ping () {
|
|
509
|
-
if (!this.#ws) return this.#pingStatus = false;
|
|
511
|
+
//if (!this.#ws) return this.#pingStatus = false;
|
|
510
512
|
this.#pingStatus = true;
|
|
511
513
|
|
|
512
514
|
let pingOpt = {
|
|
513
515
|
"ver": "2",
|
|
514
516
|
"cmd": 0
|
|
515
517
|
};
|
|
516
|
-
if (this.#ws.readyState == WebSocket.OPEN) this.#ws.send(JSON.stringify(pingOpt));
|
|
518
|
+
if (this.#ws && this.#ws.readyState == WebSocket.OPEN) this.#ws.send(JSON.stringify(pingOpt));
|
|
517
519
|
|
|
518
520
|
setTimeout(() => {
|
|
519
521
|
return this.#ping();
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "buzzk",
|
|
3
|
-
"displayName": "BUZZK",
|
|
4
|
-
"version": "1.9.
|
|
5
|
-
"description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"directories": {
|
|
9
|
-
"lib": "lib"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
-
},
|
|
14
|
-
"author": {
|
|
15
|
-
"name": "Emin-G",
|
|
16
|
-
"email": "dev.mingowo@gmail.com"
|
|
17
|
-
},
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/Emin-G/buzzk.git"
|
|
22
|
-
},
|
|
23
|
-
"bugs": {
|
|
24
|
-
"url": "https://github.com/Emin-G/buzzk/issues"
|
|
25
|
-
},
|
|
26
|
-
"homepage": "https://github.com/Emin-G/buzzk",
|
|
27
|
-
"keywords": [
|
|
28
|
-
"chzzk",
|
|
29
|
-
"buzzk",
|
|
30
|
-
"치지직",
|
|
31
|
-
"뿌지직"
|
|
32
|
-
],
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"ws": "^8.16.0"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "buzzk",
|
|
3
|
+
"displayName": "BUZZK",
|
|
4
|
+
"version": "1.9.4",
|
|
5
|
+
"description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"directories": {
|
|
9
|
+
"lib": "lib"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Emin-G",
|
|
16
|
+
"email": "dev.mingowo@gmail.com"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/Emin-G/buzzk.git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/Emin-G/buzzk/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/Emin-G/buzzk",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"chzzk",
|
|
29
|
+
"buzzk",
|
|
30
|
+
"치지직",
|
|
31
|
+
"뿌지직"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"ws": "^8.16.0"
|
|
35
|
+
}
|
|
36
|
+
}
|