Update localdb.lua

This commit is contained in:
Rivulet
2026-04-05 00:55:31 +00:00
parent ac3de34c83
commit 6985380255

View File

@@ -1,4 +1,9 @@
local db = {} local db = {}
if not fs.exists("data.db") then
local file = fs.open("data.db", "w")
file.write("{}")
fs.close()
end
local file = fs.open("data.db","r+") local file = fs.open("data.db","r+")
if not file then error("failed to open db file") end if not file then error("failed to open db file") end