17 lines
542 B
Lua
17 lines
542 B
Lua
|
|
local lang = jarvis.context.language
|
||
|
|
local userprofile = jarvis.system.env("USERPROFILE") or "C:\\Users\\Public"
|
||
|
|
local notes_path = userprofile .. "\\Documents\\jarvis-notes.txt"
|
||
|
|
|
||
|
|
if not jarvis.fs.exists(notes_path) then
|
||
|
|
jarvis.system.notify(
|
||
|
|
lang == "ru" and "Заметки" or "Notes",
|
||
|
|
lang == "ru" and "Файл пуст или не создан" or "No notes yet"
|
||
|
|
)
|
||
|
|
jarvis.audio.play_not_found()
|
||
|
|
return { chain = false }
|
||
|
|
end
|
||
|
|
|
||
|
|
jarvis.system.open(notes_path)
|
||
|
|
jarvis.audio.play_ok()
|
||
|
|
return { chain = false }
|