Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ahb")
- os.loadAPI("ferme")
- while true do
- local e, m, sc, rc, msg, sd = os.pullEvent("modem_message")
- print(msg)
- if msg=="attente" then
- ferme.boucleVide()
- elseif msg=="recolte" then
- ferme.recolte(true)
- end
- print("fini")
- ferme.msgFC("ok")
- end
Add Comment
Please, Sign In to add comment