Advertisement
DefeatedPurpose

Text Spam Generator v2

Sep 22nd, 2020
1,438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  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]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement