karin-plugin-teamspeak 1.1.0 → 1.2.2
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 -2
- package/lib/apps/ts3.js +0 -12
- package/package.json +1 -1
package/lib/apps/ts3.d.ts
CHANGED
package/lib/apps/ts3.js
CHANGED
|
@@ -136,18 +136,6 @@ class ts3 {
|
|
|
136
136
|
: `当前频道内共有${count}人`);
|
|
137
137
|
return usePuppeteer ? renderList.join("") : renderList.join("\n");
|
|
138
138
|
};
|
|
139
|
-
//关闭连接
|
|
140
|
-
quitTs = async () => {
|
|
141
|
-
if (this.teamspeak) {
|
|
142
|
-
this.teamspeak.quit();
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
//重新连接
|
|
146
|
-
reconnectTs = async () => {
|
|
147
|
-
if (this.teamspeak) {
|
|
148
|
-
this.teamspeak.reconnect(config().RECONNECT_TIMER, 1000);
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
139
|
}
|
|
152
140
|
const teamspeak3 = new ts3();
|
|
153
141
|
teamspeak3.init();
|