Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event = require("event")
- local g = require("component").openperipheral_bridge
- function list(_,_,nick,_,com)
- if com == "clear" then
- clear()
- elseif com == hellocomp then
- hellocomp()
- end
- else
- g.addText(5,2,"Неверная команда.",0xFF0000)
- g.sync()
- os.sleep(5)
- g.clear()
- g.syc()
- end
- end
- function clear()
- g.clear()
- g.sync()
- end
- function hellocomp()
- g.clear()
- g.addBox(1,1,60,10,0xFFFFFF,0.2)
- g.addText(5,2,"Hello, Mikhail!",0xFF0000)
- g.sync()
- end
- --while true do
- --end
- event.listen("glasses_chat_command",list)
Advertisement
Add Comment
Please, Sign In to add comment