@alemonjs/qq-bot 2.1.29 → 2.1.31
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/config.d.ts +1 -0
- package/lib/config.js +5 -2
- package/package.json +3 -2
package/lib/config.d.ts
CHANGED
package/lib/config.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { getConfigValue, isMaster, createUserHashKey } from 'alemonjs';
|
|
2
2
|
|
|
3
3
|
const platform = 'qq-bot';
|
|
4
|
+
const platformFullName = '@alemonjs/qq-bot';
|
|
4
5
|
const getQQBotConfig = () => {
|
|
5
6
|
const value = getConfigValue() || {};
|
|
6
|
-
|
|
7
|
+
const commonValue = value[platform] || {};
|
|
8
|
+
const bagValue = value[platformFullName] || {};
|
|
9
|
+
return { ...commonValue, ...bagValue };
|
|
7
10
|
};
|
|
8
11
|
const getIdentity = (UserId) => {
|
|
9
12
|
const isMasterUser = UserId ? isMaster(UserId, platform) : false;
|
|
@@ -17,4 +20,4 @@ const getMaster = (UserId) => {
|
|
|
17
20
|
return getIdentity(UserId);
|
|
18
21
|
};
|
|
19
22
|
|
|
20
|
-
export { getIdentity, getMaster, getQQBotConfig, platform };
|
|
23
|
+
export { getIdentity, getMaster, getQQBotConfig, platform, platformFullName };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alemonjs/qq-bot",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.31",
|
|
4
4
|
"description": "阿柠檬qq-bot平台连接",
|
|
5
5
|
"author": "lemonade",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"mime-types": "^2.1.35",
|
|
23
23
|
"public-ip": "^6.0.1",
|
|
24
24
|
"qrcode": "^1.5.3",
|
|
25
|
+
"uuid": "^14.0.1",
|
|
25
26
|
"ws": "^8.13.0"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
@@ -92,5 +93,5 @@
|
|
|
92
93
|
"type": "git",
|
|
93
94
|
"url": "https://github.com/lemonade-lab/alemonjs.git"
|
|
94
95
|
},
|
|
95
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "0425a2fbe4d6ca852f19096526219a68221f6bf5"
|
|
96
97
|
}
|