pull/36/head
UnCLAS-Prommer 2025-06-22 09:49:23 +08:00
parent 0753469746
commit 9ef9dff4a9
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ class CommandType(Enum):
GROUP_BAN = "set_group_ban" # 禁言用户
GROUP_WHOLE_BAN = "set_group_whole_ban" # 群全体禁言
GROUP_KICK = "set_group_kick" # 踢出群聊
SEND_POKE = "send_poke" # 戳一戳
SEND_POKE = "send_poke" # 戳一戳
def __str__(self) -> str:
return self.value

View File

@ -296,7 +296,7 @@ class SendHandler:
"reject_add_request": False, # 不拒绝加群请求
},
)
def handle_poke_command(self, args: Dict[str, Any], group_info: GroupInfo) -> Tuple[str, Dict[str, Any]]:
"""处理戳一戳命令
@ -310,7 +310,7 @@ class SendHandler:
user_id: int = int(args["qq_id"])
if group_info == None:
group_id = None
else:
else:
group_id: int = int(group_info.group_id)
if group_id <= 0:
raise ValueError("群组ID无效")