Update localdb.lua
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user