Add option to echo to russian channel
This commit is contained in:
@@ -220,13 +220,15 @@ function shared.Spotter.Init()
|
||||
print(string.format("[%s] Sending notification: %s", ModuleName, text))
|
||||
end
|
||||
|
||||
---@type Message
|
||||
msg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.spotter.notifyChannel .. "ru",
|
||||
message = text
|
||||
}
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
if Heimdall_Data.config.echoToRussian then
|
||||
-- Russian message
|
||||
local ruMsg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.spotter.notifyChannel .. "ru",
|
||||
message = text
|
||||
}
|
||||
table.insert(shared.messenger.queue, ruMsg)
|
||||
end
|
||||
end
|
||||
|
||||
local frame = CreateFrame("Frame")
|
||||
|
||||
Reference in New Issue
Block a user