aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/test.lua10
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