mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
fix b14
This commit is contained in:
parent
1f640b7644
commit
be3e7c892c
@ -19,7 +19,7 @@ func init() {
|
|||||||
Help: "base16384加解密\n" +
|
Help: "base16384加解密\n" +
|
||||||
"- 加密xxx\n- 解密xxx\n- 用yyy加密xxx\n- 用yyy解密xxx",
|
"- 加密xxx\n- 解密xxx\n- 用yyy加密xxx\n- 用yyy解密xxx",
|
||||||
})
|
})
|
||||||
en.OnRegex(`^加密\s?(.*)`).SetBlock(true).
|
en.OnRegex(`^加密\s*(.*)`).SetBlock(true).
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
str := ctx.State["regex_matched"].([]string)[1]
|
str := ctx.State["regex_matched"].([]string)[1]
|
||||||
es := base14.EncodeString(str)
|
es := base14.EncodeString(str)
|
||||||
@ -29,7 +29,7 @@ func init() {
|
|||||||
ctx.SendChain(message.Text("加密失败!"))
|
ctx.SendChain(message.Text("加密失败!"))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
en.OnRegex(`^解密\s?([一-踀]*[㴁-㴆]?)$`).SetBlock(true).
|
en.OnRegex(`^解密\s*([一-踀]*[㴁-㴆]?)$`).SetBlock(true).
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
str := ctx.State["regex_matched"].([]string)[1]
|
str := ctx.State["regex_matched"].([]string)[1]
|
||||||
es := base14.DecodeString(str)
|
es := base14.DecodeString(str)
|
||||||
@ -39,7 +39,7 @@ func init() {
|
|||||||
ctx.SendChain(message.Text("解密失败!"))
|
ctx.SendChain(message.Text("解密失败!"))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
en.OnRegex(`^用(.*)加密\s?(.*)`).SetBlock(true).
|
en.OnRegex(`^用(.*)加密\s*(.*)`).SetBlock(true).
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
key, str := ctx.State["regex_matched"].([]string)[1], ctx.State["regex_matched"].([]string)[2]
|
key, str := ctx.State["regex_matched"].([]string)[1], ctx.State["regex_matched"].([]string)[2]
|
||||||
t := getea(key)
|
t := getea(key)
|
||||||
@ -50,7 +50,7 @@ func init() {
|
|||||||
ctx.SendChain(message.Text("加密失败!"))
|
ctx.SendChain(message.Text("加密失败!"))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
en.OnRegex(`^用(.*)解密\s?([一-踀]*[㴁-㴆]?)$`).SetBlock(true).
|
en.OnRegex(`^用(.*)解密\s*([一-踀]*[㴁-㴆]?)$`).SetBlock(true).
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
key, str := ctx.State["regex_matched"].([]string)[1], ctx.State["regex_matched"].([]string)[2]
|
key, str := ctx.State["regex_matched"].([]string)[1], ctx.State["regex_matched"].([]string)[2]
|
||||||
t := getea(key)
|
t := getea(key)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user