View difference between Paste ID: 5Cp4a6tH and rHd1bpsP
SHOW: | | - or go back to the newest paste.
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