fix: 更新 RoundCheckSteamPlaying 函数中的 FromMsg 以使用配置管理器获取报告组 ID
This commit is contained in:
parent
6dd174d9f1
commit
ceb38d5830
@ -7,6 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.lxtend.com/qqbot/config"
|
||||||
"git.lxtend.com/qqbot/constants"
|
"git.lxtend.com/qqbot/constants"
|
||||||
"git.lxtend.com/qqbot/handler"
|
"git.lxtend.com/qqbot/handler"
|
||||||
"git.lxtend.com/qqbot/model"
|
"git.lxtend.com/qqbot/model"
|
||||||
@ -281,7 +282,8 @@ func RoundCheckSteamPlaying() {
|
|||||||
msg := model.Reply{
|
msg := model.Reply{
|
||||||
ReplyMsg: "速报:\n" + strings.Join(gameList, "\n"),
|
ReplyMsg: "速报:\n" + strings.Join(gameList, "\n"),
|
||||||
ReferOriginMsg: false,
|
ReferOriginMsg: false,
|
||||||
FromMsg: model.Message{GroupInfo: model.GroupInfo{GroupId: group}},
|
// FromMsg: model.Message{GroupInfo: model.GroupInfo{GroupId: group}},
|
||||||
|
FromMsg: model.Message{GroupInfo: model.GroupInfo{GroupId: config.ConfigManager.GetConfig().Management.ReportGroup}},
|
||||||
}
|
}
|
||||||
// action.ActionManager.SendMsg(msg)
|
// action.ActionManager.SendMsg(msg)
|
||||||
log.Println(msg.ReplyMsg)
|
log.Println(msg.ReplyMsg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user