Advertisement
MCFunRide

Siri For CC

Jun 29th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. m = peripheral.wrap("right")
  2.  
  3. function run(str)
  4. peripheral.find("command").setCommand(str)
  5. peripheral.find("command").runCommand()
  6. end
  7.  
  8. function say(str)
  9. peripheral.find("command").setCommand("sudo @a ping &9&lRPCS3&8&l:&r "..str)
  10. peripheral.find("command").runCommand()
  11. end
  12.  
  13. while true do
  14. local evt, side, plr, msg = os.pullEvent('chat_message')
  15. if msg == "hey RPCS3" then
  16. com = "sudo "..plr.." ping &aHi there, "..plr
  17. run(com)
  18. else
  19. if fs.exists("/cmds/"..msg) then
  20. shell.run("/cmds/"..msg)
  21.  
  22. com = "sudo "..plr.." ping &c I do not recognise that command."
  23.  
  24. end
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement