From 93c84d50bb299b1100b6979a7db9c4ede4d77e72 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Sun, 9 Mar 2025 14:51:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=96=B0=E5=90=AF=E7=94=A8Ste?= =?UTF-8?q?am=E6=B8=B8=E6=88=8F=E7=8A=B6=E6=80=81=E5=AE=9A=E6=9C=9F?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 取消注释RoundCheckSteamPlaying()的启动 - 将发送消息改为日志输出,便于调试 - 移除未使用的action导入 --- handler/steamplaying/steam_playing.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/handler/steamplaying/steam_playing.go b/handler/steamplaying/steam_playing.go index 07a34c1..3deb45e 100644 --- a/handler/steamplaying/steam_playing.go +++ b/handler/steamplaying/steam_playing.go @@ -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) } }