Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g = peripheral.wrap("top")
- g.clear()
- while true do
- local e, side, user, uuid, command = os.pullEvent("glasses_chat_command")
- --print(e..side..user..uuid..msg)
- --print(command)
- if command == "clear" then
- g.clear()
- g.sync()
- else
- shell.run("paster run "..command)
- end
- end
- --function checkCommand()
- --while true do
- --local event, command = os.pullEvent("chat_command")
- --end
- --end
- --parallel.waitForAny(clear)--, checkCommand)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement