feat✨: add bt

This commit is contained in:
HibiKier
2024-03-18 17:50:07 +08:00
parent 8a073aa7bc
commit 606da31851
6 changed files with 288 additions and 28 deletions
+13
View File
@@ -46,3 +46,16 @@ def ensure_group(session: EventSession) -> bool:
bool: bool
"""
return session.level in [SessionLevel.LEVEL2, SessionLevel.LEVEL3]
def ensure_private(session: EventSession) -> bool:
"""
是否在私聊中
参数:
session: session
返回:
bool: bool
"""
return not session.id3 and not session.id2