🔖 v1.9.6

This commit is contained in:
源文雨 2025-03-30 23:47:12 +09:00
parent d5227f1159
commit 6a55d9b279
5 changed files with 16 additions and 16 deletions

2
go.mod
View File

@ -44,7 +44,7 @@ require (
github.com/sirupsen/logrus v1.9.3 github.com/sirupsen/logrus v1.9.3
github.com/tidwall/gjson v1.18.0 github.com/tidwall/gjson v1.18.0
github.com/wcharczuk/go-chart/v2 v2.1.2 github.com/wcharczuk/go-chart/v2 v2.1.2
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250329125451-74392a01085b github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250330133859-27c25d9412b5
gitlab.com/gomidi/midi/v2 v2.1.7 gitlab.com/gomidi/midi/v2 v2.1.7
golang.org/x/image v0.24.0 golang.org/x/image v0.24.0
golang.org/x/sys v0.30.0 golang.org/x/sys v0.30.0

4
go.sum
View File

@ -194,8 +194,8 @@ github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+F
github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY=
github.com/wcharczuk/go-chart/v2 v2.1.2 h1:Y17/oYNuXwZg6TFag06qe8sBajwwsuvPiJJXcUcLL6E= github.com/wcharczuk/go-chart/v2 v2.1.2 h1:Y17/oYNuXwZg6TFag06qe8sBajwwsuvPiJJXcUcLL6E=
github.com/wcharczuk/go-chart/v2 v2.1.2/go.mod h1:Zi4hbaqlWpYajnXB2K22IUYVXRXaLfSGNNR7P4ukyyQ= github.com/wcharczuk/go-chart/v2 v2.1.2/go.mod h1:Zi4hbaqlWpYajnXB2K22IUYVXRXaLfSGNNR7P4ukyyQ=
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250329125451-74392a01085b h1:JCnjOzTIOUmNaIbNnWu2ICYyVkbujl+xjuINNgSQeBM= github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250330133859-27c25d9412b5 h1:HsMcBsVpYuQv+W8pjX5WdwYROrFQP9c5Pbf4x4adDus=
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250329125451-74392a01085b/go.mod h1:C86nQ0gIdAri4K2vg8IIQIslt08zzrKMcqYt8zhkx1M= github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250330133859-27c25d9412b5/go.mod h1:C86nQ0gIdAri4K2vg8IIQIslt08zzrKMcqYt8zhkx1M=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=
github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=

View File

@ -3,13 +3,13 @@
package banner package banner
// Version ... // Version ...
var Version = "v1.9.5" var Version = "v1.9.6"
// Copyright ... // Copyright ...
var Copyright = "© 2020 - 2025 FloatTech" var Copyright = "© 2020 - 2025 FloatTech"
// Banner ... // Banner ...
var Banner = "* OneBot + ZeroBot + Golang\n" + var Banner = "* OneBot + ZeroBot + Golang\n" +
"* Version " + Version + " - 2025-02-22 15:34:28 +0900 JST\n" + "* Version " + Version + " - 2025-03-30 23:46:38 +0900 JST\n" +
"* Copyright " + Copyright + ". All Rights Reserved.\n" + "* Copyright " + Copyright + ". All Rights Reserved.\n" +
"* Project: https://github.com/FloatTech/ZeroBot-Plugin" "* Project: https://github.com/FloatTech/ZeroBot-Plugin"

View File

@ -232,10 +232,10 @@ func init() {
Handle(newextrasetstr(&cfg.ModelName)) Handle(newextrasetstr(&cfg.ModelName))
en.OnPrefix("设置AI聊天系统提示词", ensureconfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true). en.OnPrefix("设置AI聊天系统提示词", ensureconfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
Handle(newextrasetstr(&cfg.SystemP)) Handle(newextrasetstr(&cfg.SystemP))
en.OnFullMatch("查看AI聊天系统提示词", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) { en.OnFullMatch("查看AI聊天系统提示词", ensureconfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
ctx.SendChain(message.Text(cfg.SystemP)) ctx.SendChain(message.Text(cfg.SystemP))
}) })
en.OnFullMatch("重置AI聊天系统提示词", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) { en.OnFullMatch("重置AI聊天系统提示词", ensureconfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
c, ok := ctx.State["manager"].(*ctrl.Control[*zero.Ctx]) c, ok := ctx.State["manager"].(*ctrl.Control[*zero.Ctx])
if !ok { if !ok {
ctx.SendChain(message.Text("ERROR: no such plugin")) ctx.SendChain(message.Text("ERROR: no such plugin"))
@ -249,10 +249,10 @@ func init() {
} }
ctx.SendChain(message.Text("成功")) ctx.SendChain(message.Text("成功"))
}) })
en.OnPrefix("设置AI聊天分隔符", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true). en.OnPrefix("设置AI聊天分隔符", ensureconfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
Handle(newextrasetstr(&cfg.Separator)) Handle(newextrasetstr(&cfg.Separator))
en.OnRegex("^设置AI聊天(不)?响应AT$", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true). en.OnRegex("^设置AI聊天(不)?响应AT$", ensureconfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
Handle(newextrasetbool(&cfg.NoReplyAT)) Handle(newextrasetbool(&cfg.NoReplyAT))
en.OnRegex("^设置AI聊天(不)?支持系统提示词$", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true). en.OnRegex("^设置AI聊天(不)?支持系统提示词$", ensureconfig, zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).
Handle(newextrasetbool(&cfg.NoSystemP)) Handle(newextrasetbool(&cfg.NoSystemP))
} }

View File

@ -12,7 +12,7 @@
"0409": { "0409": {
"identity": { "identity": {
"name": "ZeroBot-Plugin", "name": "ZeroBot-Plugin",
"version": "1.9.5.2188" "version": "1.9.6.2202"
}, },
"description": "", "description": "",
"minimum-os": "vista", "minimum-os": "vista",
@ -36,23 +36,23 @@
"#1": { "#1": {
"0000": { "0000": {
"fixed": { "fixed": {
"file_version": "1.9.5.2188", "file_version": "1.9.6.2202",
"product_version": "v1.9.5", "product_version": "v1.9.6",
"timestamp": "2025-02-22T15:34:40+08:00" "timestamp": "2025-03-30T23:46:55+08:00"
}, },
"info": { "info": {
"0409": { "0409": {
"Comments": "OneBot plugins based on ZeroBot", "Comments": "OneBot plugins based on ZeroBot",
"CompanyName": "FloatTech", "CompanyName": "FloatTech",
"FileDescription": "https://github.com/FloatTech/ZeroBot-Plugin", "FileDescription": "https://github.com/FloatTech/ZeroBot-Plugin",
"FileVersion": "1.9.5.2188", "FileVersion": "1.9.6.2202",
"InternalName": "", "InternalName": "",
"LegalCopyright": "© 2020 - 2025 FloatTech. All Rights Reserved.", "LegalCopyright": "© 2020 - 2025 FloatTech. All Rights Reserved.",
"LegalTrademarks": "", "LegalTrademarks": "",
"OriginalFilename": "ZBP.EXE", "OriginalFilename": "ZBP.EXE",
"PrivateBuild": "", "PrivateBuild": "",
"ProductName": "ZeroBot-Plugin", "ProductName": "ZeroBot-Plugin",
"ProductVersion": "v1.9.5", "ProductVersion": "v1.9.6",
"SpecialBuild": "" "SpecialBuild": ""
} }
} }