Update module initialization messages to use consistent format
This commit is contained in:
@@ -60,6 +60,7 @@ local function init()
|
|||||||
---@field StinkyCache StinkyCache
|
---@field StinkyCache StinkyCache
|
||||||
---@field StinkyTracker StinkyTracker
|
---@field StinkyTracker StinkyTracker
|
||||||
---@field Whoer Whoer
|
---@field Whoer Whoer
|
||||||
|
---@field ChatSniffer ChatSniffer
|
||||||
|
|
||||||
--- Config ---
|
--- Config ---
|
||||||
---@class HeimdallConfig
|
---@class HeimdallConfig
|
||||||
|
|||||||
@@ -299,6 +299,6 @@ shared.AchievementSniffer = {
|
|||||||
end
|
end
|
||||||
Tick()
|
Tick()
|
||||||
|
|
||||||
print("[Heimdall] AchievementSniffer loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,6 +139,6 @@ shared.AgentTracker = {
|
|||||||
print(string.format("[%s] Module initialized", ModuleName))
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
shared.dump(shared.agentTracker.agents:get(), "Agents")
|
shared.dump(shared.agentTracker.agents:get(), "Agents")
|
||||||
end
|
end
|
||||||
print("[Heimdall] AgentTracker loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,6 +137,6 @@ shared.BonkDetector = {
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print("[Heimdall] BonkDetector loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,6 @@ shared.Bully = {
|
|||||||
---@return nil
|
---@return nil
|
||||||
Init = function()
|
Init = function()
|
||||||
if Heimdall_Data.config.bully.debug then print(string.format("[%s] Module initialized", ModuleName)) end
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,39 +2,43 @@ local _, shared = ...
|
|||||||
---@cast shared HeimdallShared
|
---@cast shared HeimdallShared
|
||||||
local ModuleName = "ChatSniffer"
|
local ModuleName = "ChatSniffer"
|
||||||
|
|
||||||
---@diagnostic disable-next-line: missing-fields
|
---@class HeimdallChatSnifferConfig
|
||||||
shared.ChatSniffer = {}
|
---@field enabled boolean
|
||||||
function shared.ChatSniffer.Init()
|
---@field debug boolean
|
||||||
Heimdall_Chat = Heimdall_Chat or {}
|
|
||||||
local frame = CreateFrame("Frame")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_SAY")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_YELL")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_CHANNEL")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_WHISPER")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_CHANNEL_JOIN")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_CHANNEL_LEAVE")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_EMOTE")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_PARTY")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_PARTY_LEADER")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_RAID")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_RAID_LEADER")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_RAID_WARNING")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_SYSTEM")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_TEXT_EMOTE")
|
|
||||||
frame:RegisterEvent("CHAT_MSG_YELL")
|
|
||||||
frame:SetScript("OnEvent", function(self, event, msg, sender, language, channel)
|
|
||||||
local timestamp = date("%Y-%m-%d %H:%M:%S")
|
|
||||||
local log = string.format(
|
|
||||||
"%s|%s|%s|%s|%s|%s",
|
|
||||||
tostring(timestamp),
|
|
||||||
tostring(event),
|
|
||||||
tostring(sender),
|
|
||||||
tostring(msg),
|
|
||||||
tostring(language),
|
|
||||||
tostring(channel)
|
|
||||||
)
|
|
||||||
Heimdall_Chat[#Heimdall_Chat + 1] = log
|
|
||||||
end)
|
|
||||||
|
|
||||||
print("[Heimdall] ChatSniffer loaded")
|
shared.ChatSniffer = {
|
||||||
end
|
Init = function()
|
||||||
|
Heimdall_Chat = Heimdall_Chat or {}
|
||||||
|
local frame = CreateFrame("Frame")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_SAY")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_YELL")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_CHANNEL")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_WHISPER")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_CHANNEL_JOIN")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_CHANNEL_LEAVE")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_EMOTE")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_PARTY")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_PARTY_LEADER")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_RAID")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_RAID_LEADER")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_RAID_WARNING")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_SYSTEM")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_TEXT_EMOTE")
|
||||||
|
frame:RegisterEvent("CHAT_MSG_YELL")
|
||||||
|
frame:SetScript("OnEvent", function(self, event, msg, sender, language, channel)
|
||||||
|
local timestamp = date("%Y-%m-%d %H:%M:%S")
|
||||||
|
local log = string.format(
|
||||||
|
"%s|%s|%s|%s|%s|%s",
|
||||||
|
tostring(timestamp),
|
||||||
|
tostring(event),
|
||||||
|
tostring(sender),
|
||||||
|
tostring(msg),
|
||||||
|
tostring(language),
|
||||||
|
tostring(channel)
|
||||||
|
)
|
||||||
|
Heimdall_Chat[#Heimdall_Chat + 1] = log
|
||||||
|
end)
|
||||||
|
|
||||||
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|||||||
@@ -136,6 +136,6 @@ shared.CombatAlerter = {
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
if Heimdall_Data.config.combatAlerter.debug then print(string.format("[%s] Module initialized", ModuleName)) 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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -386,6 +386,6 @@ shared.Commander = {
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print("[Heimdall] Commander module loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ local ModuleName = "Configurator"
|
|||||||
|
|
||||||
---@class Configurator
|
---@class Configurator
|
||||||
shared.Configurator = {
|
shared.Configurator = {
|
||||||
Init = function() print(string.format("[Heimdall] %s module loaded", ModuleName)) end,
|
Init = function() print(string.format("[%s] Module initialized", ModuleName)) end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,6 +263,6 @@ shared.DeathReporter = {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
print("[Heimdall] DeathReporter loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,6 @@ shared.Dueler = {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
print("[Heimdall] Dueler loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,6 @@ shared.Echoer = {
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
if Heimdall_Data.config.echoer.debug then print(string.format("[%s] Module initialized", ModuleName)) 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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,6 @@ shared.Emoter = {
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
if Heimdall_Data.config.emoter.debug then print(string.format("[%s] Module initialized", ModuleName)) 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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -270,6 +270,6 @@ shared.Inviter = {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
print("[Heimdall] Inviter loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,6 +96,6 @@ shared.Macroer = {
|
|||||||
FixMacro(stinkies)
|
FixMacro(stinkies)
|
||||||
end)
|
end)
|
||||||
if Heimdall_Data.config.macroer.debug then print(string.format("[%s] Module initialized", ModuleName)) 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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,6 +177,6 @@ shared.Messenger = {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
print("[Heimdall] Messenger loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -592,6 +592,6 @@ shared.MinimapTagger = {
|
|||||||
--endregion
|
--endregion
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print("[Heimdall] MinimapTagger loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,6 @@ shared.Network = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
NetworkTick()
|
NetworkTick()
|
||||||
print("[Heimdall] Network module loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,6 +199,6 @@ shared.NetworkMessenger = {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print("[Heimdall] NetworkMessenger module loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -302,6 +302,6 @@ shared.Noter = {
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print("[Heimdall] Commander module loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,6 @@ shared.Sniffer = {
|
|||||||
SmellStinky(destination)
|
SmellStinky(destination)
|
||||||
end)
|
end)
|
||||||
if Heimdall_Data.config.sniffer.debug then print(string.format("[%s] Module initialized", ModuleName)) 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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -233,6 +233,6 @@ shared.Spotter = {
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
if Heimdall_Data.config.spotter.debug then print(string.format("[%s] Module initialized", ModuleName)) 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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,6 +78,6 @@ shared.StinkyCache = {
|
|||||||
return rawget(self, key)
|
return rawget(self, key)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
print("[Heimdall] StinkyCache module loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -359,6 +359,6 @@ shared.StinkyTracker = {
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
if Heimdall_Data.config.stinkyTracker.debug then print(string.format("[%s] Module initialized", ModuleName)) 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,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -730,6 +730,6 @@ shared.Whoer = {
|
|||||||
end
|
end
|
||||||
FriendsFrame_OnEvent = my_FriendsFrame_OnEvent
|
FriendsFrame_OnEvent = my_FriendsFrame_OnEvent
|
||||||
|
|
||||||
print("[Heimdall] Whoer loaded")
|
print(string.format("[%s] Module initialized", ModuleName))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user