Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local speaker = peripheral.find("speaker")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- time = os.time()
- if (time > 18.40) then
- speaker.playSound("block.bell.use")
- print("il est l'heure de dormir !")
- sleep(20)
- end
- print("il est "..time.." heure ")
- sleep(2)
- end
Add Comment
Please, Sign In to add comment