@alemonjs/qq-bot 0.0.14 → 0.0.16

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/dist/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>AlemonJS</title>
8
8
  <script type="module" crossorigin src="/assets/index.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index.css" />
9
+ <link rel="stylesheet" crossorigin href="/assets/index.css">
10
10
  </head>
11
11
 
12
12
  <body>
package/lib/desktop.js CHANGED
@@ -34,15 +34,9 @@ const activate = context => {
34
34
  const config = getConfig();
35
35
  const value = config.value ?? {};
36
36
  value['qq-bot'] = {
37
- app_id: qqBot.app_id ?? '',
38
- token: qqBot.token ?? '',
39
- secret: qqBot.secret ?? '',
37
+ ...qqBot,
40
38
  // master_key 12121,1313,1313,13 转为数组
41
39
  master_key: qqBot.master_key.split(','),
42
- route: qqBot.route ?? '/webhook',
43
- port: qqBot.port ?? 17157,
44
- ws: qqBot.ws != '' && qqBot.ws ? qqBot.ws : null,
45
- sandbox: qqBot.sandbox ?? false
46
40
  };
47
41
  config.saveValue(value);
48
42
  context.notification('QQ Bot 配置保存成功~');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alemonjs/qq-bot",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "阿柠檬qqbot平台连接",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",