SHOW:
|
|
- or go back to the newest paste.
| 1 | g = peripheral.wrap("top")
| |
| 2 | g.clear() | |
| 3 | ||
| 4 | ||
| 5 | while true do | |
| 6 | local e, side, user, uuid, command = os.pullEvent("glasses_chat_command")
| |
| 7 | --print(e..side..user..uuid..msg) | |
| 8 | --print(command) | |
| 9 | if command == "clear" then | |
| 10 | g.clear() | |
| 11 | g.sync() | |
| 12 | else | |
| 13 | shell.run("paster run "..command)
| |
| 14 | end | |
| 15 | end | |
| 16 | ||
| 17 | --function checkCommand() | |
| 18 | --while true do | |
| 19 | --local event, command = os.pullEvent("chat_command")
| |
| 20 | --end | |
| 21 | --end | |
| 22 | --parallel.waitForAny(clear)--, checkCommand) |