添加bilibilipush和完善gif文档 (#369)

*  添加bilibilipush和完善gif文档

* 🎨 修lint

* 🎨 日语语法标签匹配日文

* 🎨 优化发送逻辑和命令

* 🎨 错误处理

* 🎨 错误处理
This commit is contained in:
himawari
2022-08-11 13:08:42 +08:00
committed by GitHub
parent 4d68cc9fce
commit ae7e3c9c89
12 changed files with 567 additions and 27 deletions

View File

@@ -47,7 +47,7 @@ func init() {
return true
})
engine.OnRegex(`^日语语法\s?([0-9A-Za-z]{1,6})$`, getdb).SetBlock(true).
engine.OnRegex(`^日语语法\s?([0-9A-Za-zぁ-んァ-ヶ]{1,6})$`, getdb).SetBlock(true).
Handle(func(ctx *zero.Ctx) {
g := getRandomGrammarByTag(ctx.State["regex_matched"].([]string)[1])
if g.ID == 0 {