fix: 扩展Messages

This commit is contained in:
ningmengchongshui 2024-06-09 22:01:54 +08:00
parent f2eb038f8b
commit 08c4ce093c
2 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@
```ts ```ts
import { Messages } from './src/core/index.js' import { Messages } from './src/core/index.js'
const message = new Messages({ const message = new Messages({
priority: 9000, priority: 9000
}); })
message.response(/^你好/, async e => { message.response(/^你好/, async e => {
e.reply('你好') e.reply('你好')
}) })

View File

@ -5,9 +5,9 @@ import { plugin } from './plugin.js'
* super默认值 * super默认值
*/ */
export const PluginSuperDefine: { export const PluginSuperDefine: {
name?: string, name?: string
dsc?: string, dsc?: string
event?: string, event?: string
priority?: number priority?: number
} = { } = {
name: 'group-app', name: 'group-app',