mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
16 lines
412 B
Lua
16 lines
412 B
Lua
--- Schedule a new stream
|
|
---@param data { title: string, start_time: string, duration?: number } Schedule data
|
|
---@return ScheduleStreamAction Schedule stream action
|
|
local function schedule_stream(data)
|
|
return {
|
|
action = "schedule_stream",
|
|
data = {
|
|
title = data.title,
|
|
start_time = data.start_time,
|
|
duration = data.duration or 60
|
|
}
|
|
}
|
|
end
|
|
|
|
return schedule_stream
|