mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2025-02-02 00:15:41 +00:00
优化V3yunzai下的dispatch msg时的日志输出
This commit is contained in:
parent
7939de8291
commit
03755c4322
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user