mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 02:00:24 +00:00
✨ 添加bilibilipush和完善gif文档 (#369)
* ✨ 添加bilibilipush和完善gif文档 * 🎨 修lint * 🎨 日语语法标签匹配日文 * 🎨 优化发送逻辑和命令 * 🎨 错误处理 * 🎨 错误处理
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user