debug 游戏命令
This commit is contained in:
2
robot.py
2
robot.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user