bookrunner/init.lua

33 lines
722 B
Lua
Raw Normal View History

2022-09-30 10:12:14 -07:00
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local S = minetest.get_translator(modname)
2022-10-24 10:33:50 -07:00
assert(
type(futil.version) == "number" and futil.version >= os.time({year = 2022, month = 10, day = 24}),
"please update futil"
)
2022-09-30 10:12:14 -07:00
book_runner = {
author = "flux",
license = "AGPL_v3",
2022-10-24 10:33:50 -07:00
version = os.time({year = 2022, month = 9, day = 30}),
2022-09-30 10:12:14 -07:00
fork = "flux",
modname = modname,
modpath = modpath,
S = S,
has = {
},
log = function(level, messagefmt, ...)
return minetest.log(level, ("[%s] %s"):format(modname, messagefmt:format(...)))
end,
dofile = function(...)
return dofile(table.concat({modpath, ...}, DIR_DELIM) .. ".lua")
end,
}
book_runner.dofile("command")