local p =
function p.main(frame) local args = local v, i = 0 for i, v in ipairs(frame:getParent.args) do args[i] = v end return p.choose(args)end
function p.choose(options) -- return each one of the options during the week local week_start_time = os.time local time_slice = 7 * 24 * 3600 / #options local current_option_index = math.floor((os.time - week_start_time) / time_slice) + 1 return options[current_option_index]end
return p