!78 让喵喵/和#都可以触发

Merge pull request !78 from 重装小秃/N/A
This commit is contained in:
Kokomi 2024-04-15 17:47:09 +00:00 committed by Gitee
commit 4d21adf1d9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -9,14 +9,14 @@ let app = App.init({
app.reg({ app.reg({
help: { help: {
rule: /^#?(喵喵)?(命令|帮助|菜单|help|说明|功能|指令|使用说明)$/, rule: /^(\/|#)?(喵喵)?(命令|帮助|菜单|help|说明|功能|指令|使用说明)$/,
fn: Help.render, fn: Help.render,
desc: '【#帮助】 #喵喵帮助' desc: '【#/帮助】 #/喵喵帮助'
}, },
version: { version: {
rule: /^#?喵喵版本$/, rule: /^(\/|#)?喵喵版本$/,
fn: Help.version, fn: Help.version,
desc: '【#帮助】 喵喵版本介绍' desc: '【#/帮助】 #/喵喵版本介绍'
} }
}) })