Added libs

This commit is contained in:
Lucas
2026-01-25 13:55:46 +10:00
parent 575c682afc
commit f70af3c4ea
229 changed files with 26983 additions and 0 deletions

45
noSys/events.py Normal file
View File

@@ -0,0 +1,45 @@
class Events:
STARTED = "started"
START_ERROR = "error_start"
READY = "ready"
USER_ADDED = "user_added"
USER_REMOVED = "user_removed"
PEER_CONNECTED = "peer_connected"
PEER_CONNECTION_ERROR = "peer_connection_error"
PEER_DISCONNECTED = "peer_disconnected"
class DynamicEvents:
@staticmethod
def peer_connection(id:str) -> str:
return f"peer_connection_{id}"
@staticmethod
def peer_connection_error(id:str) -> str:
return f"peer_connection_error_{id}"
@staticmethod
def peer_disconnection(id:str) -> str:
return f"peer_disconnection_{id}"
@staticmethod
def module_message(lib: str, module: str) -> str:
return f"module_message_{lib}_{module}"
@staticmethod
def module_connection(lib: str, module: str) -> str:
return f"module_connection_{lib}_{module}"
@staticmethod
def module_disconnection(lib: str, module: str) -> str:
return f"module_disconnection_{lib}_{module}"
@staticmethod
def network_connection(network: str) -> str:
return f"network_connection_{network}"
@staticmethod
def network_disconnection(network: str) -> str:
return f"network_disconnection_{network}"
class ServerEvents:
TEST = "test"