mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5dbdc5f740
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user