Paste
#81666: Untitled Lua paste by 194.94.98.190
mytextword = widget({ type = "textbox" })
-- TODO make a loop to iterate over persons in "海上牧云记"
-- mytextword.text = "" .. ccyan .. "九州 - 海上牧云记 » " .. coldef .. cred .. " 牧云笙 " .. coldef .. ""
-- change displaied statements per 30 minutes.
statements_file = io.open(configdir .. "/statements.txt", "r")
mytimer = timer({ timeout = 30*60 })
mytimer:add_signal("timeout", function()
text_line = statements_file.read("*line")
if text_line then
mytextword.text = "" .. cblack .. "九州 - 海上牧云记 » " .. coldef .. ccyan .. text_line .. coldef .. ""
end
end)
mytimer:start()