karin-plugin-teamspeak 1.3.2 → 1.3.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/README.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # karin-plugin-teamspeak3
2
2
 
3
- karin 下的 [teamspeak3|5](https://www.teamspeak.com/zh-CN/) 插件,使用ts开发。
3
+ karin 下的 [teamspeak](https://www.teamspeak.com/zh-CN/) 插件,使用ts开发。
4
4
  需要搭配 [karin](https://karin.fun/) 使用。
5
5
  在用户进入离开ts服务器时在群里发送用户进出提示
6
6
  也会响应QQ群或私聊的 `人数` 命令发送当前服务器内有人在的频道的人数和进入时长
7
7
 
8
8
  # 使用方法
9
- 1. 安装该插件
10
- 2. 运行一次 `npx karin .`
11
- 3. 配置该插件
12
- 4. 重新运行 `npx karin .`
9
+
10
+ 1. 安装该插件
11
+ 2. 运行一次 `npx karin .`
12
+ 3. karin web界面的插件页签中配置该插件
13
+ 4. 保存后查看命令行是否成功连接服务器
package/lib/web.config.js CHANGED
@@ -8,14 +8,14 @@ export default {
8
8
  /** 动态渲染的组件 */
9
9
  components: () => [
10
10
  components.input.string("HOST", {
11
- label: "teamspeak 服务器地址(不带端口)",
11
+ label: "teamspeak 服务器地址或域名(不带端口)",
12
12
  defaultValue: defConfig.HOST,
13
13
  variant: "underlined",
14
- placeholder: "请输入服务器地址",
14
+ placeholder: "请输入服务器地址或域名",
15
15
  rules: [
16
16
  {
17
- regex: /^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])$/,
18
- error: "请输入正确的IP地址",
17
+ regex: /^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])$|^([0-9a-zA-Z-]{1,}\.)+([a-zA-Z]{2,})$/,
18
+ error: "请输入正确的IP地址或域名",
19
19
  },
20
20
  ],
21
21
  }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "karin-plugin-teamspeak",
3
- "version": "1.3.2",
4
- "description": "karin 的 teamspeak3 插件",
3
+ "version": "1.3.4",
4
+ "description": "karin 的 teamspeak 插件",
5
5
  "homepage": "https://github.com/jacksixth/karin-plugin-teamspeak3",
6
6
  "bugs": {
7
7
  "url": "https://github.com/jacksixth/karin-plugin-teamspeak3/issues"
@@ -10,6 +10,12 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/jacksixth/karin-plugin-teamspeak3.git"
12
12
  },
13
+ "keywords": [
14
+ "karin-plugin",
15
+ "teamspeak",
16
+ "karin"
17
+ ],
18
+ "license": "GPL-3.0-only",
13
19
  "author": "jack",
14
20
  "type": "module",
15
21
  "main": "lib/index.js",