karin-plugin-teamspeak 1.3.1 → 1.3.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.js +3 -1
- package/package.json +1 -1
package/lib/apps/ts3.js
CHANGED
|
@@ -3,13 +3,15 @@ import { config } from "../utils/index.js";
|
|
|
3
3
|
import karin, { logger, render, segment } from "node-karin";
|
|
4
4
|
import moment from "node-karin/moment";
|
|
5
5
|
logger.info("初始化ts3插件");
|
|
6
|
-
|
|
6
|
+
let disNotifyNameList = [];
|
|
7
7
|
class ts3 {
|
|
8
8
|
teamspeak;
|
|
9
9
|
connectTimer = 0;
|
|
10
10
|
//初始化 如果已经有连接了就关闭连接重新连接
|
|
11
11
|
init = async () => {
|
|
12
12
|
const TS = config();
|
|
13
|
+
//fix ReferenceError: Cannot access 'config' before initialization
|
|
14
|
+
disNotifyNameList = [TS.NICKNAME, ...TS.DIS_NOTIFY_NAME_LIST];
|
|
13
15
|
logger.info("开始连接ts3服务器...");
|
|
14
16
|
if (this.teamspeak) {
|
|
15
17
|
await this.teamspeak.quit();
|