Guest User

Karen

a guest
Aug 23rd, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. c = peripheral.wrap("left")
  2. m = peripheral.find("monitor")
  3. x = 0
  4.  
  5. while true do
  6.  event, name, message = os.pullEvent("chat")
  7.  if name == "TheEpicTekkit" then
  8.   c.say("Shut up Keelan", 100000)
  9.  elseif string.find(message, "do math") then
  10.   c.say("yes", 100000)
  11.   event, name, message = os.pullEvent("chat")
  12.   local func = assert(load("return "..message))
  13.   x = func()
  14.   c.say("its "..x, 100000)
  15.  end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment