refactor: tweak script file handling

This commit is contained in:
2025-03-15 23:35:51 -04:00
parent c7358fd4c0
commit 2040eb0078
4 changed files with 19 additions and 15 deletions

21
main.lua Normal file
View File

@@ -0,0 +1,21 @@
Server = "localhost"
Username = "ErrorNoWatcher"
HttpAddress = "127.0.0.1:8080"
Owners = { "ErrorNoInternet" }
MatrixOwners = { "@errornointernet:envs.net" }
for _, module in ipairs({
"lib",
"automation",
"enum",
"events",
"inventory",
"movement",
"utils",
}) do
module = "lib/" .. module
package.loaded[module] = nil
require(module)
end
update_listeners()