Add macroer (or the skeleton of)
This commit is contained in:
@@ -48,6 +48,7 @@ local function init()
|
||||
---@field agentTracker HeimdallAgentTrackerConfig
|
||||
---@field emoter HeimdallEmoterConfig
|
||||
---@field echoer HeimdallEchoerConfig
|
||||
---@field macroer HeimdallMacroerConfig
|
||||
---@field whisperNotify table<string, string>
|
||||
---@field stinkies table<string, boolean>
|
||||
---@field agents table<string, string>
|
||||
@@ -111,6 +112,9 @@ local function init()
|
||||
---@field masterChannel string
|
||||
---@field prefix string
|
||||
|
||||
---@class HeimdallMacroerConfig
|
||||
---@field enabled boolean
|
||||
|
||||
--- Data ---
|
||||
---@class HeimdallMessengerData
|
||||
---@field queue table<string, Message>
|
||||
@@ -218,6 +222,9 @@ local function init()
|
||||
masterChannel = shared.GetOrDefault(Heimdall_Data, { "config", "echoer", "masterChannel" }, "Agent"),
|
||||
prefix = shared.GetOrDefault(Heimdall_Data, { "config", "echoer", "prefix" }, ""),
|
||||
},
|
||||
macroer = {
|
||||
enabled = shared.GetOrDefault(Heimdall_Data, { "config", "macroer", "enabled" }, false),
|
||||
},
|
||||
agents = shared.GetOrDefault(Heimdall_Data, { "config", "agents" }, {}),
|
||||
}
|
||||
|
||||
|
||||
9
Modules/Macroer.lua
Normal file
9
Modules/Macroer.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
local addonname, shared = ...
|
||||
---@cast shared HeimdallShared
|
||||
---@cast addonname string
|
||||
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Macroer = {}
|
||||
function shared.Macroer.Init()
|
||||
print("Heimdall - Macroer loaded")
|
||||
end
|
||||
@@ -92,6 +92,9 @@ local config = {
|
||||
masterChannel = aura_env.config.echoer.masterChannel,
|
||||
prefix = aura_env.config.echoer.prefix,
|
||||
},
|
||||
macroer = {
|
||||
enabled = aura_env.config.macroer.enabled,
|
||||
},
|
||||
}
|
||||
|
||||
Heimdall_Data.config.spotter.enabled = config.spotter.enabled
|
||||
@@ -143,5 +146,7 @@ Heimdall_Data.config.echoer.enabled = config.echoer.enabled
|
||||
Heimdall_Data.config.echoer.masterChannel = config.echoer.masterChannel
|
||||
Heimdall_Data.config.echoer.prefix = config.echoer.prefix
|
||||
|
||||
Heimdall_Data.config.macroer.enabled = config.macroer.enabled
|
||||
|
||||
Heimdall_Data.config.whisperNotify = config.whisperNotify
|
||||
Heimdall_Data.config.stinkies = config.stinkies
|
||||
|
||||
Reference in New Issue
Block a user