Merge remote-tracking branch 'origin/master'

This commit is contained in:
yoimiya-kokomi 2022-08-03 04:54:07 +08:00
commit 5dbdc5f740

View File

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