Add commander config to the weakaura

This commit is contained in:
2025-01-05 23:01:20 +01:00
parent be20aa77b9
commit 06f143915c
3 changed files with 13 additions and 1 deletions

View File

@@ -122,6 +122,7 @@ local function init()
---@class HeimdallCommanderConfig
---@field enabled boolean
---@field masterChannel string
---@field commander string
--- Data ---
---@class HeimdallMessengerData
@@ -238,6 +239,7 @@ local function init()
commander = {
enabled = shared.GetOrDefault(Heimdall_Data, { "config", "commander", "enabled" }, false),
masterChannel = shared.GetOrDefault(Heimdall_Data, { "config", "commander", "masterChannel" }, "Agent"),
commander = shared.GetOrDefault(Heimdall_Data, { "config", "commander", "commander" }, "Heimdállr"),
},
}
@@ -332,6 +334,7 @@ local function init()
shared.Bully.Init()
shared.AgentTracker.Init()
shared.Macroer.Init()
shared.Commander.Init()
print("Heimdall loaded!")
end

File diff suppressed because one or more lines are too long

View File

@@ -96,6 +96,11 @@ local config = {
enabled = aura_env.config.macroer.enabled,
priority = StringToArray(aura_env.config.macroer.priority),
},
commander = {
enabled = aura_env.config.commander.enabled,
masterChannel = aura_env.config.commander.masterChannel,
commander = aura_env.config.commander.commander,
},
}
Heimdall_Data.config.spotter.enabled = config.spotter.enabled
@@ -150,5 +155,9 @@ Heimdall_Data.config.echoer.prefix = config.echoer.prefix
Heimdall_Data.config.macroer.enabled = config.macroer.enabled
Heimdall_Data.config.macroer.priority = config.macroer.priority
Heimdall_Data.config.commander.enabled = config.commander.enabled
Heimdall_Data.config.commander.masterChannel = config.commander.masterChannel
Heimdall_Data.config.commander.commander = config.commander.commander
Heimdall_Data.config.whisperNotify = config.whisperNotify
Heimdall_Data.config.stinkies = config.stinkies