Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local s = peripheral.wrap("right")
- tArgs = { ... }
- local pitch = 100
- if tArgs[1] == "deep" then
- pitch = 1
- table.remove(tArgs, 1)
- elseif tArgs[1] == "high" then
- pitch = 400
- table.remove(tArgs, 1)
- end
- local msg = table.concat(tArgs, " ")
- msg = string.gsub(msg, "wtf", "what the fuck")
- msg = string.gsub(msg, "shit", "ship")
- msg = string.gsub(msg, "crap", "carp")
- msg = string.gsub(msg, "fuck", "frog")
- msg = string.gsub(msg, ":D", "happyface")
- msg = string.gsub(msg, "D:", "sadface")
- msg = string.gsub(msg, "xD", "loud laugh with closed eyes")
- s.say(msg, pitch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement