karin-plugin-teamspeak 1.8.0 → 1.9.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/lib/apps/ts3.d.ts +0 -1
- package/lib/apps/ts3.js +0 -10
- package/package.json +2 -2
package/lib/apps/ts3.d.ts
CHANGED
package/lib/apps/ts3.js
CHANGED
|
@@ -44,7 +44,6 @@ class ts3 {
|
|
|
44
44
|
});
|
|
45
45
|
_teamspeak.on("error", (err) => {
|
|
46
46
|
logger.error(loggerPluginName + "ts3连接出错", err);
|
|
47
|
-
this.handelReconnect();
|
|
48
47
|
});
|
|
49
48
|
_teamspeak.on("clientconnect", (e) => {
|
|
50
49
|
if (!disNotifyNameList.includes(e.client.nickname)) {
|
|
@@ -149,15 +148,6 @@ class ts3 {
|
|
|
149
148
|
this.teamspeak = undefined;
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
|
-
//重新连接
|
|
153
|
-
reconnectTs = async () => {
|
|
154
|
-
if (this.teamspeak) {
|
|
155
|
-
this.teamspeak.reconnect(config().RECONNECT_TIMER, 1000);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
this.init();
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
151
|
//重连逻辑
|
|
162
152
|
async handelReconnect() {
|
|
163
153
|
const TS = config();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "karin-plugin-teamspeak",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "karin 的 teamspeak 插件",
|
|
5
5
|
"homepage": "https://github.com/jacksixth/karin-plugin-teamspeak3",
|
|
6
6
|
"bugs": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"pr": "node lib/cli/pr.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"ts3-nodejs-library": "^3.5.
|
|
29
|
+
"ts3-nodejs-library": "^3.5.2"
|
|
30
30
|
},
|
|
31
31
|
"karin": {
|
|
32
32
|
"apps": [
|