1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
local milla = require("milla") local function sleep(n) local t0 = os.clock() while os.clock() - t0 <= n do end end local function printer() local config = milla.toml_config.new() print(config:IrcServer()) config:IrcServer("irc.libera.chat") print(config:IrcServer()) while true do milla.send_message(config:IrcServer(), "#warroom") sleep(5) end end printer()