diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-06-03 22:46:56 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-06-03 22:46:56 +0000 |
commit | 16a577b2b07b89a14900218eea54f342db502468 (patch) | |
tree | de96629483090da8eb313a80a52c9fac769e3625 /plugins/test.lua | |
parent | first lua script, WIP, rss script incoming (diff) | |
download | milla-16a577b2b07b89a14900218eea54f342db502468.tar.gz milla-16a577b2b07b89a14900218eea54f342db502468.zip |
initial lua script support, fixes #27, fixes #34
Diffstat (limited to 'plugins/test.lua')
-rw-r--r-- | plugins/test.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/test.lua b/plugins/test.lua index 23eab94..afd998c 100644 --- a/plugins/test.lua +++ b/plugins/test.lua @@ -1,11 +1,19 @@ +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 - send_message("Hello, World!", "#warroom") + milla.send_message(config:IrcServer(), "#warroom") sleep(5) end end |