mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-10-27 14:10:52 +00:00
feat: add /hb debug command for local chat logging
This commit is contained in:
+15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user