e自定义字段支持频道 (#15)
This commit is contained in:
parent
fadf40e3fc
commit
0eff8e0648
|
@ -343,6 +343,12 @@ class PluginsLoader {
|
||||||
* @param e.isMaster 是否管理员
|
* @param e.isMaster 是否管理员
|
||||||
* @param e.logText 日志用户字符串
|
* @param e.logText 日志用户字符串
|
||||||
* @param e.logFnc 日志方法字符串
|
* @param e.logFnc 日志方法字符串
|
||||||
|
|
||||||
|
* 频道
|
||||||
|
* @param e.isGuild 是否频道
|
||||||
|
* @param e.at 支持频道 tiny_id
|
||||||
|
* @param e.atBot 支持频道
|
||||||
|
|
||||||
*/
|
*/
|
||||||
dealMsg (e) {
|
dealMsg (e) {
|
||||||
if (e.message) {
|
if (e.message) {
|
||||||
|
@ -366,8 +372,12 @@ class PluginsLoader {
|
||||||
case 'at':
|
case 'at':
|
||||||
if (val.qq == Bot.uin) {
|
if (val.qq == Bot.uin) {
|
||||||
e.atBot = true
|
e.atBot = true
|
||||||
} else {
|
} else if (val.id == Bot.tiny_id) {
|
||||||
|
e.atBot = true
|
||||||
/** 多个at 以最后的为准 */
|
/** 多个at 以最后的为准 */
|
||||||
|
} else if (val.id) {
|
||||||
|
e.at = val.id
|
||||||
|
} else {
|
||||||
e.at = val.qq
|
e.at = val.qq
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
@ -418,6 +428,8 @@ class PluginsLoader {
|
||||||
if (!e.group_name) e.group_name = e.group?.name
|
if (!e.group_name) e.group_name = e.group?.name
|
||||||
|
|
||||||
e.logText = `[${e.group_name}(${e.sender.card})]`
|
e.logText = `[${e.group_name}(${e.sender.card})]`
|
||||||
|
} else if (e.detail_type === 'guild') {
|
||||||
|
e.isGuild = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.user_id && cfg.masterQQ.includes(Number(e.user_id))) {
|
if (e.user_id && cfg.masterQQ.includes(Number(e.user_id))) {
|
||||||
|
|
|
@ -49,8 +49,5 @@
|
||||||
"imports": {
|
"imports": {
|
||||||
"#miao": "./plugins/miao-plugin/components/index.js",
|
"#miao": "./plugins/miao-plugin/components/index.js",
|
||||||
"#miao.models": "./plugins/miao-plugin/models/index.js"
|
"#miao.models": "./plugins/miao-plugin/models/index.js"
|
||||||
},
|
|
||||||
"pnpm": {
|
|
||||||
"patchedDependencies": {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,17 +0,0 @@
|
||||||
diff --git a/lib/core/device.js b/lib/core/device.js
|
|
||||||
index ffadc63f15e8b0b435e640af60c6b854d0236a83..8a09faebae021f845d961086c8bb2b9ee19096f3 100644
|
|
||||||
--- a/lib/core/device.js
|
|
||||||
+++ b/lib/core/device.js
|
|
||||||
@@ -105,9 +105,9 @@ var Platform;
|
|
||||||
})(Platform = exports.Platform || (exports.Platform = {}));
|
|
||||||
const mobile = {
|
|
||||||
id: "com.tencent.mobileqq",
|
|
||||||
- name: "A8.8.80.7400",
|
|
||||||
- version: "8.8.80.7400",
|
|
||||||
- ver: "8.8.80",
|
|
||||||
+ name: "A8.9.25.10005",
|
|
||||||
+ version: "A8.9.25.10005",
|
|
||||||
+ ver: "8.9.25",
|
|
||||||
sign: Buffer.from([166, 183, 69, 191, 36, 162, 194, 119, 82, 119, 22, 246, 243, 110, 182, 141]),
|
|
||||||
buildtime: 1640921786,
|
|
||||||
appid: 16,
|
|
Loading…
Reference in New Issue