mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
Some checks are pending
打包最新版为 Docker Image / build docker (push) Waiting to run
最新版 / Build binary CI (386, linux) (push) Waiting to run
最新版 / Build binary CI (386, windows) (push) Waiting to run
最新版 / Build binary CI (amd64, linux) (push) Waiting to run
最新版 / Build binary CI (amd64, windows) (push) Waiting to run
最新版 / Build binary CI (arm, linux) (push) Waiting to run
最新版 / Build binary CI (arm64, linux) (push) Waiting to run
PushLint / lint (push) Waiting to run
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
34 lines
788 B
Go
34 lines
788 B
Go
// Package crypter 处理函数
|
|
package crypter
|
|
|
|
import (
|
|
zero "github.com/wdvxdr1123/ZeroBot"
|
|
"github.com/wdvxdr1123/ZeroBot/message"
|
|
)
|
|
|
|
// hou
|
|
func houEncryptHandler(ctx *zero.Ctx) {
|
|
text := ctx.State["regex_matched"].([]string)[1]
|
|
result := encodeHou(text)
|
|
ctx.SendChain(message.Text(result))
|
|
}
|
|
|
|
func houDecryptHandler(ctx *zero.Ctx) {
|
|
text := ctx.State["regex_matched"].([]string)[1]
|
|
result := decodeHou(text)
|
|
ctx.SendChain(message.Text(result))
|
|
}
|
|
|
|
// fumo
|
|
func fumoEncryptHandler(ctx *zero.Ctx) {
|
|
text := ctx.State["regex_matched"].([]string)[1]
|
|
result := encryptFumo(text)
|
|
ctx.SendChain(message.Text(result))
|
|
}
|
|
|
|
func fumoDecryptHandler(ctx *zero.Ctx) {
|
|
text := ctx.State["regex_matched"].([]string)[1]
|
|
result := decryptFumo(text)
|
|
ctx.SendChain(message.Text(result))
|
|
}
|