Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dns = require("dns")
- local event = require("event")
- local mctcp = require("mctcp")
- function saveAll()
- dns.save()
- end
- function loadAll()
- dns.load()
- end
- function start()
- loadAll()
- mctcp.listen()
- event.listen("init", function() --Wait for boot to end, so that the robot lib becomes available
- local remcon = require("remoteController") --require the lib that requires the robot lib
- remcon.listen()
- return false --unregister the listener
- end)
- event.listen("shutdown", saveAll)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement