DefeatedPurpose

Text Spam Generator v2

Sep 22nd, 2020
813
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Flood = function(Msg, Embed, Limit)
  2.     local Spam = ""
  3.     if Embed == "```" then
  4.         Msg = "```"..Msg.."```"
  5.         repeat
  6.             Spam = Spam..""..Msg
  7.         until Spam:len() + Msg:len() >= Limit
  8.     else
  9.         Msg = Embed..""..Msg..""..Embed
  10.         repeat
  11.             Spam = Spam..""..Msg.."\n"
  12.         until Spam:len() + Msg:len() >= Limit
  13.     end
  14.     return Spam
  15. end
  16.  
  17. --[[
  18. Example:
  19. local Spam = Flood("Msg U Want", "Embed Choice", Character_Limit)
  20. local Spam = Flood(".", "```", 2000) 2000 is discord's text limit]]
RAW Paste Data