karin-plugin-teamspeak 1.5.1 → 1.5.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 +2 -2
  2. package/package.json +1 -1
package/lib/apps/ts3.js CHANGED
@@ -172,13 +172,13 @@ export const getAllUserList = async () => {
172
172
  count += clients.length;
173
173
  res[channel.name] = clients.map((c) => {
174
174
  const connectTimeSec = moment().diff(moment.unix(c.lastconnected), "second");
175
- let connectTime = `(${Math.floor(connectTimeSec / 60)}:${Math.floor(connectTimeSec % 60)}) `;
175
+ let connectTime = `${Math.floor(connectTimeSec / 60)}:${Math.floor(connectTimeSec % 60)}`;
176
176
  return {
177
177
  nickName: c.nickname, //昵称
178
178
  lastconnected: moment
179
179
  .unix(c.lastconnected)
180
180
  .format("YYYY-MM-DD HH:mm:ss"), //上次连接进来的时间
181
- connectTime, //已经连接的时间 - 单位秒
181
+ connectTime, //已经连接的时间 - 单位分:秒
182
182
  };
183
183
  });
184
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karin-plugin-teamspeak",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "karin 的 teamspeak 插件",
5
5
  "homepage": "https://github.com/jacksixth/karin-plugin-teamspeak3",
6
6
  "bugs": {