# Utils # Version: 0.0.2 # Get global private __cmd__ and __msg__ methods as a map. def getPrivateMethods(glbs): keys = list(glbs.keys()) gbMethods = {} for method in keys: if (method.startswith("__cmd__") or method.startswith("__msg__")) and callable(glbs[method]): gbMethods[method] = glbs[method] return gbMethods