Introduce MOD_HEADER constante in all modules as mandatory constante.

This commit is contained in:
adator
2025-11-10 00:13:35 +01:00
parent a1254c7a39
commit a7efede75e
7 changed files with 52 additions and 2 deletions

View File

@@ -15,6 +15,14 @@ class Jsonrpc(IModule):
"""
jsonrpc: int = 0
MOD_HEADER: set[str] = {
'JsonRPC',
'1.0.0',
'Module using the unrealircd-rpc-py library',
'Defender Team',
'Defender-6'
}
def callback_sent_to_irc(self, response: LiveRPCResult) -> None:
dnickname = self.Config.SERVICE_NICKNAME