Update module initialization messages to use consistent format

This commit is contained in:
2025-05-25 10:51:31 +02:00
parent d46c874604
commit 63027c2dcf
25 changed files with 63 additions and 58 deletions

View File

@@ -60,6 +60,7 @@ local function init()
---@field StinkyCache StinkyCache
---@field StinkyTracker StinkyTracker
---@field Whoer Whoer
---@field ChatSniffer ChatSniffer
--- Config ---
---@class HeimdallConfig

View File

@@ -299,6 +299,6 @@ shared.AchievementSniffer = {
end
Tick()
print("[Heimdall] AchievementSniffer loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -139,6 +139,6 @@ shared.AgentTracker = {
print(string.format("[%s] Module initialized", ModuleName))
shared.dump(shared.agentTracker.agents:get(), "Agents")
end
print("[Heimdall] AgentTracker loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -137,6 +137,6 @@ shared.BonkDetector = {
end
end)
print("[Heimdall] BonkDetector loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -11,6 +11,6 @@ shared.Bully = {
---@return nil
Init = function()
if Heimdall_Data.config.bully.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] Bully loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -2,9 +2,12 @@ local _, shared = ...
---@cast shared HeimdallShared
local ModuleName = "ChatSniffer"
---@diagnostic disable-next-line: missing-fields
shared.ChatSniffer = {}
function shared.ChatSniffer.Init()
---@class HeimdallChatSnifferConfig
---@field enabled boolean
---@field debug boolean
shared.ChatSniffer = {
Init = function()
Heimdall_Chat = Heimdall_Chat or {}
local frame = CreateFrame("Frame")
frame:RegisterEvent("CHAT_MSG_SAY")
@@ -36,5 +39,6 @@ function shared.ChatSniffer.Init()
Heimdall_Chat[#Heimdall_Chat + 1] = log
end)
print("[Heimdall] ChatSniffer loaded")
end
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -136,6 +136,6 @@ shared.CombatAlerter = {
end)
if Heimdall_Data.config.combatAlerter.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] CombatAlerter loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -386,6 +386,6 @@ shared.Commander = {
end
end)
print("[Heimdall] Commander module loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -8,5 +8,5 @@ local ModuleName = "Configurator"
---@class Configurator
shared.Configurator = {
Init = function() print(string.format("[Heimdall] %s module loaded", ModuleName)) end,
Init = function() print(string.format("[%s] Module initialized", ModuleName)) end,
}

View File

@@ -263,6 +263,6 @@ shared.DeathReporter = {
)
)
end
print("[Heimdall] DeathReporter loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -58,6 +58,6 @@ shared.Dueler = {
)
)
end
print("[Heimdall] Dueler loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -60,6 +60,6 @@ shared.Echoer = {
end)
if Heimdall_Data.config.echoer.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] Echoer loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -61,6 +61,6 @@ shared.Emoter = {
end)
if Heimdall_Data.config.emoter.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] Emoter loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -270,6 +270,6 @@ shared.Inviter = {
)
)
end
print("[Heimdall] Inviter loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -96,6 +96,6 @@ shared.Macroer = {
FixMacro(stinkies)
end)
if Heimdall_Data.config.macroer.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] Macroer loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -177,6 +177,6 @@ shared.Messenger = {
)
)
end
print("[Heimdall] Messenger loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -592,6 +592,6 @@ shared.MinimapTagger = {
--endregion
end)
print("[Heimdall] MinimapTagger loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -80,6 +80,6 @@ shared.Network = {
end
NetworkTick()
print("[Heimdall] Network module loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -199,6 +199,6 @@ shared.NetworkMessenger = {
end
end
print("[Heimdall] NetworkMessenger module loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -302,6 +302,6 @@ shared.Noter = {
end
end)
print("[Heimdall] Commander module loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -87,6 +87,6 @@ shared.Sniffer = {
SmellStinky(destination)
end)
if Heimdall_Data.config.sniffer.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] Sniffer loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -233,6 +233,6 @@ shared.Spotter = {
end)
if Heimdall_Data.config.spotter.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] Spotter loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -78,6 +78,6 @@ shared.StinkyCache = {
return rawget(self, key)
end,
})
print("[Heimdall] StinkyCache module loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -359,6 +359,6 @@ shared.StinkyTracker = {
end)
if Heimdall_Data.config.stinkyTracker.debug then print(string.format("[%s] Module initialized", ModuleName)) end
print("[Heimdall] StinkyTracker loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}

View File

@@ -730,6 +730,6 @@ shared.Whoer = {
end
FriendsFrame_OnEvent = my_FriendsFrame_OnEvent
print("[Heimdall] Whoer loaded")
print(string.format("[%s] Module initialized", ModuleName))
end,
}