mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 17:35:34 +00:00
6ce6f2132b
玩官方BOT,适配一下 Signed-off-by: 重装小秃 <v17360963@gmail.com>
24 lines
475 B
JavaScript
24 lines
475 B
JavaScript
import Help from './help/Help.js'
|
|
import { App } from '#miao'
|
|
|
|
let app = App.init({
|
|
id: 'help',
|
|
name: '喵喵帮助',
|
|
desc: '喵喵帮助'
|
|
})
|
|
|
|
app.reg({
|
|
help: {
|
|
rule: /^(\/|#)?(喵喵)?(命令|帮助|菜单|help|说明|功能|指令|使用说明)$/,
|
|
fn: Help.render,
|
|
desc: '【#/帮助】 #/喵喵帮助'
|
|
},
|
|
version: {
|
|
rule: /^(\/|#)?喵喵版本$/,
|
|
fn: Help.version,
|
|
desc: '【#/帮助】 #/喵喵版本介绍'
|
|
}
|
|
})
|
|
|
|
export default app
|