feat:初版
This commit is contained in:
6
attr_check.py
Normal file
6
attr_check.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from bot import BotService
|
||||
service = BotService()
|
||||
import inspect
|
||||
for name, method in inspect.getmembers(service, callable):
|
||||
if name in {"on_connect","on_receive","on_close"}:
|
||||
print(name, hasattr(method, "_wx_connect_handled"), hasattr(method, "_wx_recv_handled"), hasattr(method, "_wx_close_handled"))
|
||||
Reference in New Issue
Block a user