Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- whitelist = {
- ['jona8773'] = true,
- ['plazter'] = true,
- ['lantow'] = true,
- ['antol2765'] = true,
- ['steenkiller'] = true,
- ['layzeedk'] = true,
- ['bunyipcrush'] = true,
- }
- chat = peripheral.wrap("top")
- function open()
- rs.setBundledOutput("left", colors.white)
- sleep(5)
- rs.setBundledOutput("left", 0)
- end
- while true do
- local event, p1, chat = os.pullEvent("chat")
- if whitelist[p1:lower()] then
- if chat == "open" then
- open()
- elseif chat == "stay" then
- rs.setBundledOutput("left", colors.white)
- elseif chat == "close" then
- rs.setBundledOutput("left", 0)
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment