debug 游戏命令

This commit is contained in:
liuwei
2025-02-21 16:49:50 +08:00
parent f3e2beb9be
commit 924ad911df

View File

@@ -151,7 +151,7 @@ class Robot(Job):
if msg.from_group() and q.startswith("/"):
# 因为内容中存在空格指令所以不能使用q
game_message = re.sub(r"@.*?[\u2005|\s]", "", msg.content)
self.LOG.info(f"game_message{game_message}")
self.LOG.info(f"msg.content:{msg.content}\n game_message: {game_message}")
resp = game_process_message(group_id=msg.roomid, player_id=msg.sender, message=game_message,
player_name=self.allContacts.get(msg.sender, msg.sender))
self.sendTextMsg(resp.get("message"), msg.roomid, msg.sender)