fix: 扩展Messages
This commit is contained in:
parent
f2eb038f8b
commit
08c4ce093c
|
@ -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('你好')
|
||||||
})
|
})
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue