@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.
- package/lib/desktop.js +1 -7
- 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
|
-
|
|
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 配置保存成功~');
|