Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event = require("event")
- local t = require("component").tunnel
- local g = require("component").openperipheral_bridge
- --FUNCTIONS
- function AddMsgBox(_,_,_,_,_,msgbox)
- g.clear()
- g.addBox(1,1,200,10,0xFFFFFF,0.3)
- g.addText(5,2,"Робот: "..msgbox,0xFF0000)
- g.sync()
- end
- function clear()
- g.clear()
- g.sync()
- end
- function glasscommand(_,_,nick,_,gcom)
- if gcom == "clear" then clear()
- else
- print(gcom)
- t.send(gcom)
- end
- end
- event.listen("glasses_chat_command",glasscommand)
- event.listen("modem_message",AddMsgBox)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement