优化V3yunzai下的dispatch msg时的日志输出

This commit is contained in:
yoimiya-kokomi 2022-08-03 03:32:40 +08:00
parent 7939de8291
commit 03755c4322

View File

@ -5,20 +5,20 @@ import { checkAuth, getMysApi } from './mys.js'
export class miao extends plugin { export class miao extends plugin {
constructor () { constructor () {
let rule = {
reg: '.+',
fnc: 'dispatch'
}
super({ super({
name: 'miao-plugin', name: 'miao-plugin',
desc: '喵喵插件', desc: '喵喵插件',
event: 'message', event: 'message',
priority: 50, priority: 50,
rule: [{ rule: [rule]
reg: '.+', })
fnc: 'dispatch' Object.defineProperty(rule, 'log', {
}] get: () => !!this.isDispatch
}) })
}
get log () {
return !!this.isDispatch
} }
accept () { accept () {
@ -50,7 +50,6 @@ export class miao extends plugin {
} }
} }
} }
return false return false
} }
} }