调整部分内容
This commit is contained in:
parent
492167268e
commit
0922a90bba
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,6 +1,14 @@
|
||||||
|
# 3.1.3
|
||||||
|
|
||||||
|
* 支持协议端:QQBot
|
||||||
|
* **请注意:**
|
||||||
|
* 从3.1.3版本开始,原genshin包内的功能会逐步重构,与miao-plugin进行整合,以降低后续游戏版本升级时的维护成本
|
||||||
|
* 在整合过程中,可能会移除一些重复或迁移成本较高的功能,以及可能会有功能不稳定情况
|
||||||
|
* 如介意,请切换至**v312-backup**分支
|
||||||
|
|
||||||
# 3.1.2
|
# 3.1.2
|
||||||
|
|
||||||
* 支持协议端:QQBot、OPQBot
|
* 支持协议端:OPQBot
|
||||||
* 新增`#绑定用户`命令
|
* 新增`#绑定用户`命令
|
||||||
* 可将其他QQ绑定至当前用户,以打通多个用户,子用户使用主用户的CK与UID等信息
|
* 可将其他QQ绑定至当前用户,以打通多个用户,子用户使用主用户的CK与UID等信息
|
||||||
* 同时也可绑定其他平台的用户,例如频道、微信等。如需链接至其他平台需使用TRSS-Yunzai或Lain-plugin
|
* 同时也可绑定其他平台的用户,例如频道、微信等。如需链接至其他平台需使用TRSS-Yunzai或Lain-plugin
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { Common } from '#miao'
|
||||||
|
|
||||||
let stateArr = {}
|
let stateArr = {}
|
||||||
|
|
||||||
export default class plugin {
|
export default class plugin {
|
||||||
|
@ -116,4 +118,11 @@ export default class plugin {
|
||||||
delete stateArr[this.conKey(isGroup)][type]
|
delete stateArr[this.conKey(isGroup)][type]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async renderImg (plugin, tpl, data, cfg) {
|
||||||
|
return Common.render(plugin, tpl, data, {
|
||||||
|
...cfg,
|
||||||
|
e: this.e
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,8 +237,12 @@ export default class Runtime {
|
||||||
}
|
}
|
||||||
let ret = true
|
let ret = true
|
||||||
if (base64) {
|
if (base64) {
|
||||||
|
if (cfg.recallMsg) {
|
||||||
|
ret = await this.e.reply(base64, false, {})
|
||||||
|
} else {
|
||||||
ret = await this.e.reply(base64)
|
ret = await this.e.reply(base64)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return cfg.retType === 'msgId' ? ret : true
|
return cfg.retType === 'msgId' ? ret : true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
12
package.json
12
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "trss-yunzai",
|
"name": "trss-yunzai",
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"author": "TimeRainStarSky, Yoimiya-Kokomi, Le-niao",
|
"author": "TimeRainStarSky, Yoimiya-Kokomi, Le-niao",
|
||||||
"description": "Bot",
|
"description": "Bot",
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
|
@ -32,18 +32,18 @@
|
||||||
"node-xlsx": "^0.23.0",
|
"node-xlsx": "^0.23.0",
|
||||||
"oicq": "link:lib/modules/oicq",
|
"oicq": "link:lib/modules/oicq",
|
||||||
"pm2": "^5.3.0",
|
"pm2": "^5.3.0",
|
||||||
"puppeteer": "^21.4.1",
|
"puppeteer": "^21.5.0",
|
||||||
"redis": "^4.6.10",
|
"redis": "^4.6.10",
|
||||||
"sequelize": "^6.33.0",
|
"sequelize": "^6.34.0",
|
||||||
"sqlite3": "^5.1.6",
|
"sqlite3": "^5.1.6",
|
||||||
"ws": "^8.14.2",
|
"ws": "^8.14.2",
|
||||||
"yaml": "^2.3.3"
|
"yaml": "^2.3.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.52.0",
|
"eslint": "^8.53.0",
|
||||||
"eslint-config-standard": "^17.1.0",
|
"eslint-config-standard": "^17.1.0",
|
||||||
"eslint-plugin-import": "^2.29.0",
|
"eslint-plugin-import": "^2.29.0",
|
||||||
"eslint-plugin-n": "^16.2.0",
|
"eslint-plugin-n": "^16.3.0",
|
||||||
"eslint-plugin-promise": "^6.1.1"
|
"eslint-plugin-promise": "^6.1.1"
|
||||||
},
|
},
|
||||||
"imports": {
|
"imports": {
|
||||||
|
|
Loading…
Reference in New Issue