Implement ACTUALLY sending notes
This commit is contained in:
@@ -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[]
|
||||||
|
Reference in New Issue
Block a user