7 lines
314 B
Python
7 lines
314 B
Python
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"))
|