koishi-plugin-iirose-cut 0.0.2 → 0.0.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.
Files changed (2) hide show
  1. package/lib/index.js +3 -6
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -22,11 +22,7 @@ function apply(ctx) {
22
22
  ctx.on('iirose/joinRoom', (session, data) => {
23
23
  const index = nowUserList.indexOf(data.username);
24
24
  if (index > -1) {
25
- session.send({
26
- public: {
27
- message: '[IIROSE-CUT] 用户已存在白名单'
28
- }
29
- });
25
+ return;
30
26
  }
31
27
  nowUserList.push(data.username);
32
28
  });
@@ -43,6 +39,7 @@ function apply(ctx) {
43
39
  .option('on', '开启自动切歌')
44
40
  .option('off', '关闭自动切歌')
45
41
  .option('view', '查看当前的列表')
42
+ .usage('\n注意:机器人需要**星标**权限\n每次插件启动时,房间列表会初始化为空,只有当有人主动退出与进入等操作的时候,才会对房间列表进行操作')
46
43
  .action(v => {
47
44
  if (v.session.platform !== 'iirose') {
48
45
  return ' [IIROSE-CUT] 该平台不支持使用此插件';
@@ -76,7 +73,7 @@ function apply(ctx) {
76
73
  const nowUserListView = '当前房间人员列表:\n' + nowUserList.map(data => {
77
74
  return `\n [*${data}*] `;
78
75
  });
79
- const whiteListView = '当前白名单人员列表' + whiteList.map(data => {
76
+ const whiteListView = '当前白名单人员列表:' + whiteList.map(data => {
80
77
  return `\n [*${data}*] `;
81
78
  });
82
79
  return '[IIROSE-CUT] \n\n' + nowUserListView + '\n\n' + whiteListView;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-iirose-cut",
3
3
  "description": "适用于的[IIROSE蔷薇花园](https://iirose.com/)自动切除退出房间的人所点的歌曲",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "peerDependencies": {
19
19
  "koishi": "4.14.1",
20
- "koishi-plugin-adapter-iirose": "^0.2.8"
20
+ "koishi-plugin-adapter-iirose": "^0.2.11"
21
21
  },
22
22
  "homepage": "https://forum.bstluo.top/"
23
23
  }