bookrunner/init.lua

32 lines
726 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(
2022-11-27 10:27:09 -08:00
type(futil.version) == "number" and futil.version >= os.time({ year = 2022, month = 10, day = 24 }),
2022-10-24 10:33:50 -07:00
"please update futil"
)
2022-09-30 10:12:14 -07:00
book_runner = {
author = "flux",
license = "AGPL_v3",
2022-11-27 10:27:09 -08: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,
2022-11-27 10:27:09 -08:00
has = {},
2022-09-30 10:12:14 -07:00
log = function(level, messagefmt, ...)
return minetest.log(level, ("[%s] %s"):format(modname, messagefmt:format(...)))
end,
dofile = function(...)
2022-11-27 10:27:09 -08:00
return dofile(table.concat({ modpath, ... }, DIR_DELIM) .. ".lua")
2022-09-30 10:12:14 -07:00
end,
}
book_runner.dofile("command")