fix: 原来是这样

This commit is contained in:
ikechan8370 2023-06-25 18:36:27 +08:00
parent 37572bd635
commit 7e559881eb

View file

@ -17,7 +17,10 @@ export class APTool extends AbstractTool {
func = async function (opts, e) {
let { prompt } = opts
e.message = e.message.filter(m => m.type !== 'at' || m.qq !== Bot.uin)
if (e.at === Bot.uin) {
e.at = null
}
e.atBot = false
let ap
try {
// eslint-disable-next-line camelcase