feat: add /hb debug command for local chat logging

This commit is contained in:
Bluewhale1337
2026-10-02 11:02:45 +02:00
parent 62b93b74e2
commit f4ba0d983d
5 changed files with 27 additions and 1 deletions
+15
View File
@@ -103,6 +103,21 @@ function HealBot_SlashCmd(cmd)
HealBot_AddDebug( "Channel active" );
return;
end
if (cmd=="debug" or cmd=="dbg") then
if not HealBot_Config then return; end
if HealBot_Config.DebugMode == 1 then
HealBot_Config.DebugMode = 0;
if DEFAULT_CHAT_FRAME then
DEFAULT_CHAT_FRAME:AddMessage("|cFFFFD100HealBot|r: Debug mode |cFFFF0000DISABLED|r.");
end
else
HealBot_Config.DebugMode = 1;
if DEFAULT_CHAT_FRAME then
DEFAULT_CHAT_FRAME:AddMessage("|cFFFFD100HealBot|r: Debug mode |cFF00FF00ENABLED|r.");
end
end
return;
end
end
-- HealBot_SendAddonMessage moved to HealBot_Controller_Comms.lua