Implement ACTUALLY sending notes

This commit is contained in:
2025-01-15 12:16:07 +01:00
parent 25f2310c25
commit 2689e39d70

View File

@@ -12,6 +12,7 @@ local ModuleName = "Noter"
---@diagnostic disable-next-line: missing-fields ---@diagnostic disable-next-line: missing-fields
shared.Noter = {} shared.Noter = {}
function shared.Noter.Init() function shared.Noter.Init()
---Hopefully this will not be necessary
---@param text string ---@param text string
---@param size number ---@param size number
---@return string[] ---@return string[]
@@ -95,6 +96,13 @@ function shared.Noter.Init()
---@param note Note ---@param note Note
local function PrintNote(note) local function PrintNote(note)
print(string.format("[%s] %s: %s", note.source, note.date, note.note)) print(string.format("[%s] %s: %s", note.source, note.date, note.note))
---@type Message
local msg = {
channel = "CHANNEL",
data = Heimdall_Data.config.noter.masterChannel,
message = string.format("[%s] %s: %s", note.source, note.date, note.note)
}
table.insert(shared.messenger.queue, msg)
end end
---@param name string ---@param name string
---@param args string[] ---@param args string[]