Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- while true do
- event, player, message = os.pullEvent()
- s = peripheral.wrap("left")
- dj = peripheral.wrap("right")
- if event == "chat" and player == "wasliebob" and message == "wasliebot: test" then
- s.say("WaslieBot: test")
- sleep(2)
- elseif event == "chat" and player == "Gallie6" and message == "wasliebot: test" then
- s.say("WaslieBot: test")
- sleep(2)
- elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: test" then
- s.say("WaslieBot: test")
- sleep(2)
- elseif event == "chat" and player == "Jean_Calle" and message == "wasliebot: test" then
- s.say("WaslieBot: test")
- sleep(2)
- elseif event == "chat" and player == "wasliebob" and message == "wasliebot: play" then
- dj.playAudio()
- print("Starting Audio")
- sleep(2)
- elseif event == "chat" and player == "Gallie6" and message == "wasliebot: play" then
- dj.playAudio()
- print("Starting Audio")
- sleep(2)
- elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: play" then
- dj.playAudio()
- print("Starting Audio")
- sleep(2)
- elseif event == "chat" and player == "wasliebob" and message == "wasliebot: pause" then
- dj.stopAudio()
- print("Stopping Audio")
- sleep(2)
- elseif event == "chat" and player == "Gallie6" and message == "wasliebot: pause" then
- dj.stopAudio()
- print("Stopping Audio")
- sleep(2)
- elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: pause" then
- dj.stopAudio()
- print("Stopping Audio")
- sleep(2)
- elseif event == "chat" and player == "wasliebob" and message == "wasliebot: credits" then
- s.say("WaslieBot: WaslieBot is made by Wasliebob")
- sleep(17)
- elseif event == "chat" and player == "Gallie6" and message == "wasliebot: credits" then
- s.say("WaslieBot: WaslieBot is made by Wasliebob")
- sleep(17)
- elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: credits" then
- s.say("WaslieBot: WaslieBot is made by Wasliebob")
- sleep(17)
- elseif event == "chat" and player == "Jean_Calle" and message == "wasliebot: credits" then
- s.say("WaslieBot: WaslieBot is made by Wasliebob")
- sleep(17)
- elseif event == "chat" and player == "wasliebob" and message == "wasliebot: waslie" then
- s.say("Wasliebot: Activated")
- os.run({}, "waslie")
- sleep(2)
- elseif event == "chat" and player == "Gallie6" and message == "wasliebot: waslie" then
- s.say("Wasliebot: Activated")
- os.run({}, "waslie")
- sleep(2)
- elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: waslie" then
- s.say("Wasliebot: Activated")
- os.run({}, "waslie")
- sleep(2)
- elseif event == "chat" and player == "wasliebob" and message == "wasliebot: jonkeldorp" then
- s.say("Wasliebot: Activated")
- os.run({}, "jonkeldorp")
- sleep(2)
- elseif event == "chat" and player == "Gallie6" and message == "wasliebot: jonkeldorp" then
- s.say("Wasliebot: Activated")
- os.run({}, "jonkeldorp")
- sleep(2)
- elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: jonkeldorp" then
- s.say("Wasliebot: Activated")
- os.run({}, "jonkeldorp")
- sleep(2)
- elseif event == "chat" and player == "wasliebob" and message == "wasliebot: spawn" then
- s.say("Wasliebot: Activated")
- os.run({}, "spawn")
- sleep(2)
- elseif event == "chat" and player == "Gallie6" and message == "wasliebot: spawn" then
- s.say("Wasliebot: Activated")
- os.run({}, "spawn")
- sleep(2)
- elseif event == "chat" and player == "Greenfingerx" and message == "wasliebot: spawn" then
- s.say("Wasliebot: Activated")
- os.run({}, "spawn")
- sleep(2)
- elseif event == "chat" and player == "wasliebob" and message == "wasliebot: spawn2" then
- s.say("Wasliebot: Activated")
- os.run({}, "spawn2")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment