aboutsummaryrefslogblamecommitdiffstats
path: root/plugins/test.lua
blob: afd998c804163c0be690774561bd56fbf0fdca2e (plain) (tree)
1
2
3
4
5
6
7
8

                              





                                     





                                          
                 
                                                          




                
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()