wasliebob

Speak

Jul 17th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.79 KB | None | 0 0
  1.             term.clear()
  2.          
  3.         while true do
  4.         event, player, message = os.pullEvent()
  5.         s = peripheral.wrap("left")
  6.         dj = peripheral.wrap("right")
  7.          
  8.         if event == "chat" and player == "wasliebob" and message == "wasliebot: test" then
  9.         s.say("WaslieBot: test")
  10.         sleep(2)
  11.          
  12.         elseif event == "chat" and player == "Gallie6" and message == "wasliebot: test" then
  13.         s.say("WaslieBot: test")
  14.         sleep(2)
  15.            
  16.             elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: test" then
  17.         s.say("WaslieBot: test")
  18.         sleep(2)
  19.          
  20.             elseif event == "chat" and player == "Jean_Calle" and message == "wasliebot: test" then
  21.         s.say("WaslieBot: test")
  22.         sleep(2)
  23.            
  24.         elseif event == "chat" and player == "wasliebob" and message == "wasliebot: play" then
  25.         dj.playAudio()
  26.         print("Starting Audio")
  27.         sleep(2)
  28.        
  29.             elseif event == "chat" and player == "Gallie6" and message == "wasliebot: play" then
  30.         dj.playAudio()
  31.         print("Starting Audio")
  32.         sleep(2)
  33.            
  34.             elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: play" then
  35.         dj.playAudio()
  36.         print("Starting Audio")
  37.         sleep(2)
  38.            
  39.         elseif event == "chat" and player == "wasliebob" and message == "wasliebot: pause" then
  40.         dj.stopAudio()
  41.         print("Stopping Audio")
  42.         sleep(2)
  43.          
  44.             elseif event == "chat" and player == "Gallie6" and message == "wasliebot: pause" then
  45.         dj.stopAudio()
  46.         print("Stopping Audio")
  47.         sleep(2)
  48.            
  49.             elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: pause" then
  50.         dj.stopAudio()
  51.         print("Stopping Audio")
  52.         sleep(2)
  53.            
  54.         elseif event == "chat" and player == "wasliebob" and message == "wasliebot: credits" then
  55.         s.say("WaslieBot: WaslieBot is made by Wasliebob")
  56.         sleep(17)
  57.        
  58.             elseif event == "chat" and player == "Gallie6" and message == "wasliebot: credits" then
  59.         s.say("WaslieBot: WaslieBot is made by Wasliebob")
  60.         sleep(17)
  61.            
  62.             elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: credits" then
  63.         s.say("WaslieBot: WaslieBot is made by Wasliebob")
  64.         sleep(17)
  65.            
  66.             elseif event == "chat" and player == "Jean_Calle" and message == "wasliebot: credits" then
  67.         s.say("WaslieBot: WaslieBot is made by Wasliebob")
  68.         sleep(17)
  69.            
  70.             elseif event == "chat" and player == "wasliebob" and message == "wasliebot: waslie" then
  71.             s.say("Wasliebot: Activated")
  72.             os.run({}, "waslie")
  73.             sleep(2)
  74.            
  75.             elseif event == "chat" and player == "Gallie6" and message == "wasliebot: waslie" then
  76.             s.say("Wasliebot: Activated")
  77.             os.run({}, "waslie")
  78.             sleep(2)
  79.            
  80.             elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: waslie" then
  81.             s.say("Wasliebot: Activated")
  82.             os.run({}, "waslie")
  83.             sleep(2)
  84.            
  85.             elseif event == "chat" and player == "wasliebob" and message == "wasliebot: jonkeldorp" then
  86.             s.say("Wasliebot: Activated")
  87.             os.run({}, "jonkeldorp")
  88.             sleep(2)
  89.            
  90.             elseif event == "chat" and player == "Gallie6" and message == "wasliebot: jonkeldorp" then
  91.             s.say("Wasliebot: Activated")
  92.             os.run({}, "jonkeldorp")
  93.             sleep(2)
  94.            
  95.             elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: jonkeldorp" then
  96.             s.say("Wasliebot: Activated")
  97.             os.run({}, "jonkeldorp")
  98.             sleep(2)
  99.            
  100.             elseif event == "chat" and player == "wasliebob" and message == "wasliebot: spawn" then
  101.             s.say("Wasliebot: Activated")
  102.             os.run({}, "spawn")
  103.             sleep(2)
  104.            
  105.             elseif event == "chat" and player == "Gallie6" and message == "wasliebot: spawn" then
  106.             s.say("Wasliebot: Activated")
  107.             os.run({}, "spawn")
  108.             sleep(2)
  109.            
  110.             elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: spawn" then
  111.             s.say("Wasliebot: Activated")
  112.             os.run({}, "spawn")
  113.             sleep(2)
  114.      
  115.             elseif event == "chat" and player == "wasliebob" and message == "wasliebot: spawn2" then
  116.             s.say("Wasliebot: Activated")
  117.             os.run({}, "spawn2")
  118.             sleep(2)
  119.             end
  120.         end
Advertisement
Add Comment
Please, Sign In to add comment