feat: 重新启用Steam游戏状态定期检查功能

- 取消注释RoundCheckSteamPlaying()的启动
- 将发送消息改为日志输出,便于调试
- 移除未使用的action导入
This commit is contained in:
lixiangwuxian 2025-03-09 14:51:33 +08:00
parent c9f063833b
commit 93c84d50bb

View File

@ -2,11 +2,11 @@ package steamplaying
import (
"fmt"
"log"
"regexp"
"strings"
"time"
"git.lxtend.com/qqbot/action"
"git.lxtend.com/qqbot/constants"
"git.lxtend.com/qqbot/handler"
"git.lxtend.com/qqbot/model"
@ -33,7 +33,7 @@ func init() {
handler.RegisterHelpInform("禁用上号通知", "steam", "禁用您在本群的steam上号通知")
handler.RegisterHandler("查房", checkSteamPlaying, constants.LEVEL_USER)
handler.RegisterHelpInform("查房", "steam", "查看群内成员的steam游戏状态")
// go RoundCheckSteamPlaying()
go RoundCheckSteamPlaying()
}
func bindSteam(msg model.Message) model.Reply {
@ -292,7 +292,8 @@ func RoundCheckSteamPlaying() {
ReferOriginMsg: false,
FromMsg: model.Message{GroupInfo: model.GroupInfo{GroupId: group}},
}
action.ActionManager.SendMsg(msg)
// action.ActionManager.SendMsg(msg)
log.Println(msg.ReplyMsg)
}
}