basic Lua 5.4 implementation with few example commands

This commit is contained in:
Priler 2026-01-17 05:46:38 +05:00
parent 11c2500d9c
commit 7440baa1b2
35 changed files with 2554 additions and 460 deletions

View file

@ -0,0 +1,16 @@
-- simple counter demonstrating state persistence
local count = jarvis.state.get("count") or 0
count = count + 1
jarvis.state.set("count", count)
local lang = jarvis.context.language
local msg = lang == "ru"
and "Счётчик: " .. count
or "Counter: " .. count
jarvis.log("info", msg)
jarvis.system.notify("Counter", tostring(count))
jarvis.audio.play_ok()
return { chain = true }