Guest User

punGen

a guest
Aug 7th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.54 KB | None | 0 0
  1. local skeleton = {"Why did the skeleton go to the club? Because he was BONELY","Who was the most famous skeleton detective? Sherlock BONES","This joke isn't very Humerous","Summer gives me a FEMUR","What did the skeleton say when asked about the ghosts? I don't calCIUM","Can't you just leave me to my SKULLking?","I hope you can handle me, because I'm BONE to be wild!","Put some BACKBONE into it!","I guess you could say that Jumpscare really RATTLED that skeleton"}
  2. local goat = {"What did the goat say when he saw someone fall off their roof? You've GOAT to be KIDing me","What did the goat say when their fire alarm went off? This is BAAAD","What did the goat say when they met with their cousin after a long time? You've been got FUR too long!","That goat is pretty HORNy"}
  3. local ghost = {"Why did the ghost get into the lift? To LIFT his SPIRITS"}
  4. local furniture = {"Is your fridge running? Then you'd better go catch it then!","Press Shift to COUCH"}
  5. local args = {...}
  6. if #args < 1 then
  7.   print("Usage: "..shell.getRunningProgram().." <Topic>")
  8. else
  9.   local topic = string.upper(args[1])
  10.   if topic == "SKELETON" then
  11.     local pun = math.random(1,#skeleton)
  12.     print(skeleton[pun])
  13.   elseif topic == "GOAT" then
  14.     local pun = math.random(1,#goat)
  15.     print(goat[pun])
  16.   elseif topic == "GHOST" then
  17.     local pun = math.random(1,#ghost)
  18.     print(ghost[pun])
  19.   elseif topic == "FURNITURE" then
  20.     local pun = math.random(1,#furniture)
  21.     print(furniture[pun])
  22.   else
  23.     print("Sorry! I don't have a pun for that topic yet!")
  24.   end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment