From 16a577b2b07b89a14900218eea54f342db502468 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 3 Jun 2024 18:46:56 -0400 Subject: initial lua script support, fixes #27, fixes #34 --- plugins/test.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3