@alemonjs/qq-bot 0.0.14 → 0.0.15

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/desktop.js +1 -7
  2. package/package.json +1 -1
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.15",
4
4
  "description": "阿柠檬qqbot平台连接",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",