diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-06-03 19:09:41 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-06-03 19:09:41 +0000 |
commit | f8738b563757158c8fe6ffe77d4cdc5dad1e2a62 (patch) | |
tree | ecb361b2fa330462ea9895b92f84dcf388afb48a /plugins/test.lua | |
parent | some cleanup (diff) | |
download | milla-f8738b563757158c8fe6ffe77d4cdc5dad1e2a62.tar.gz milla-f8738b563757158c8fe6ffe77d4cdc5dad1e2a62.zip |
first lua script, WIP, rss script incoming
Diffstat (limited to '')
-rw-r--r-- | plugins/test.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/test.lua b/plugins/test.lua new file mode 100644 index 0000000..23eab94 --- /dev/null +++ b/plugins/test.lua @@ -0,0 +1,13 @@ +local function sleep(n) + local t0 = os.clock() + while os.clock() - t0 <= n do end +end + +local function printer() + while true do + send_message("Hello, World!", "#warroom") + sleep(5) + end +end + +printer() |