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.
Files changed (2) hide show
  1. package/lib/apps/ts3.js +3 -1
  2. 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
- const disNotifyNameList = [config().NICKNAME, ...config()?.DIS_NOTIFY_NAME_LIST];
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karin-plugin-teamspeak",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "karin 的 teamspeak3 插件",
5
5
  "homepage": "https://github.com/jacksixth/karin-plugin-teamspeak3",
6
6
  "bugs": {