mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
🐛 修复转发问题
This commit is contained in:
parent
94b8c149e6
commit
0a1dcde512
@ -202,7 +202,7 @@ func init() { // 插件主体
|
|||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
ctx.SendGroupMessage(
|
ctx.SendGroupMessage(
|
||||||
utils.Str2Int(ctx.State["regex_matched"].([]string)[1]), // 需要发送的群
|
utils.Str2Int(ctx.State["regex_matched"].([]string)[1]), // 需要发送的群
|
||||||
ctx.State["regex_matched"].([]string)[1], // 需要发送的信息
|
ctx.State["regex_matched"].([]string)[2], // 需要发送的信息
|
||||||
)
|
)
|
||||||
ctx.Send("📧 --> " + ctx.State["regex_matched"].([]string)[1])
|
ctx.Send("📧 --> " + ctx.State["regex_matched"].([]string)[1])
|
||||||
return
|
return
|
||||||
@ -212,7 +212,7 @@ func init() { // 插件主体
|
|||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
ctx.SendPrivateMessage(
|
ctx.SendPrivateMessage(
|
||||||
utils.Str2Int(ctx.State["regex_matched"].([]string)[1]), // 需要发送的人的qq
|
utils.Str2Int(ctx.State["regex_matched"].([]string)[1]), // 需要发送的人的qq
|
||||||
ctx.State["regex_matched"].([]string)[1], // 需要发送的信息
|
ctx.State["regex_matched"].([]string)[2], // 需要发送的信息
|
||||||
)
|
)
|
||||||
ctx.Send("📧 --> " + ctx.State["regex_matched"].([]string)[1])
|
ctx.Send("📧 --> " + ctx.State["regex_matched"].([]string)[1])
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user