Implement ACTUALLY sending notes
This commit is contained in:
@@ -12,6 +12,7 @@ local ModuleName = "Noter"
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Noter = {}
|
||||
function shared.Noter.Init()
|
||||
---Hopefully this will not be necessary
|
||||
---@param text string
|
||||
---@param size number
|
||||
---@return string[]
|
||||
@@ -95,6 +96,13 @@ function shared.Noter.Init()
|
||||
---@param note Note
|
||||
local function PrintNote(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
|
||||
---@param name string
|
||||
---@param args string[]
|
||||
|
Reference in New Issue
Block a user