Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chatbox=peripheral.wrap("top")
- while true do
- e,s,p,m=os.pullEvent("chat_message")
- -- where e = event
- -- s = side
- -- p = player
- -- m = message
- end
- print("..p.. said "..m)
- -- chatbox.say("The event "..e.." on the "..s.." of the computer heard "..p.." say "..m)
Add Comment
Please, Sign In to add comment