e自定义字段支持频道 (#15)

This commit is contained in:
2y8e9h22 2023-03-09 22:21:17 +08:00 committed by GitHub
parent fadf40e3fc
commit 0eff8e0648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 22 deletions

View File

@ -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,9 +372,13 @@ class PluginsLoader {
case 'at': case 'at':
if (val.qq == Bot.uin) { if (val.qq == Bot.uin) {
e.atBot = true e.atBot = true
} else if (val.id == Bot.tiny_id) {
e.atBot = true
/** 多个at 以最后的为准 */
} else if (val.id) {
e.at = val.id
} else { } else {
/** 多个at 以最后的为准 */ e.at = val.qq
e.at = val.qq
} }
break break
case 'file': case 'file':
@ -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))) {

View File

@ -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": {}
} }
} }

View File

@ -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,