mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
Some checks failed
自动更新 nix 依赖 / gomod2nix update (push) Has been cancelled
打包最新版为 Docker Image / build docker (push) Has been cancelled
最新版 / Build binary CI (386, linux) (push) Has been cancelled
最新版 / Build binary CI (386, windows) (push) Has been cancelled
最新版 / Build binary CI (amd64, linux) (push) Has been cancelled
最新版 / Build binary CI (amd64, windows) (push) Has been cancelled
最新版 / Build binary CI (arm, linux) (push) Has been cancelled
最新版 / Build binary CI (arm64, linux) (push) Has been cancelled
PushLint / lint (push) Has been cancelled
32 lines
1008 B
Go
32 lines
1008 B
Go
// Package crypter 奇怪语言加解密
|
|
package crypter
|
|
|
|
import (
|
|
ctrl "github.com/FloatTech/zbpctrl"
|
|
"github.com/FloatTech/zbputils/control"
|
|
zero "github.com/wdvxdr1123/ZeroBot"
|
|
)
|
|
|
|
func init() {
|
|
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{
|
|
DisableOnDefault: false,
|
|
Brief: "奇怪语言加解密",
|
|
Help: "多种语言加解密插件\n" +
|
|
"- 齁语加解密:\n" +
|
|
"- 齁语加密 [文本] 或 h加密 [文本]\n" +
|
|
"- 齁语解密 [密文] 或 h解密 [密文]\n\n" +
|
|
"- Fumo语加解密:\n" +
|
|
"- fumo加密 [文本]\n" +
|
|
"- fumo解密 [密文]\n\n",
|
|
PublicDataFolder: "Crypter",
|
|
})
|
|
|
|
// hou
|
|
engine.OnRegex(`^(?:齁语加密|h加密)\s*(.+)$`).SetBlock(true).Handle(houEncryptHandler)
|
|
engine.OnRegex(`^(?:齁语解密|h解密)\s*(.+)$`).SetBlock(true).Handle(houDecryptHandler)
|
|
|
|
// Fumo
|
|
engine.OnRegex(`^fumo加密\s*(.+)$`).SetBlock(true).Handle(fumoEncryptHandler)
|
|
engine.OnRegex(`^fumo解密\s*(.+)$`).SetBlock(true).Handle(fumoDecryptHandler)
|
|
}
|