DefeatedPurpose

Text Spam Generator

Aug 30th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.28 KB | None | 0 0
  1. -- Discord Spam Text By Defeated Purpose
  2. function flood(text, embedchoice, limit, calculate)
  3. text = tostring(text) or "."
  4. embedchoice = tonumber(embedchoice) or 5
  5. limit = tonumber(limit) or 2000
  6. calculate = tonumber(calculate) or 10
  7. message = text
  8. message_limit = #message
  9. platform = "nil"
  10. --Choose Type of embed
  11. -- * (Slanted)  [1]| ** (Bold)  [2]| *** (Slanted & Bold) [3] | `` (Code Block v1)[4]| ```  (Code Block v2)[5] <- Reccommended | ~~ (Strike-Through)[6] | No embed  (Self-Explainitory)[7]
  12. answer = embedchoice --Best spam method, reccommend do not change.
  13. if answer == 1 then
  14.     embed = "*" elseif answer == 2 then
  15.     embed = "**" elseif answer == 3 then
  16.     embed = "***" elseif answer == 4 then
  17.     embed = "``" elseif answer == 5 then
  18.     embed = "```" elseif answer == 6 then
  19.     embed = "~~" elseif answer == 7 then
  20.     embed = " " elseif answer ~= 1 or 2 or 3 or 4 or 5 or 6 then
  21.     embed = "ERROR, EMBED CHOICE NOT DETECTED!"
  22.     end
  23. embed_limit = #embed
  24. text = ""..embed..""..message..""..embed..""
  25. amount_of_text = #text
  26. text_counter = #text
  27. text_cap = limit
  28. spam = {}
  29. line = 1
  30. while true do
  31.     table.insert(spam, text)
  32.     line = line + 1
  33.     text_counter = text_counter + amount_of_text
  34.     if text_counter > text_cap or text_counter == text_cap then
  35.         break
  36.         end
  37.     end
  38. if text_counter > text_cap then
  39.     text_counter = text_counter - amount_of_text
  40.     end
  41. confirmation = table.concat(spam)
  42. amount_of_lines = line
  43. print("Generated Spammy Text from Defeated Purpose's script")
  44. print("-----------------------------------------------------")
  45. print(table.concat(spam))
  46. print("-----------------------------------------------------")
  47. print("Generated "..text_counter.." characters which is "..text_counter.." out of "..text_cap.." "..platform.."'s message limit!")
  48. print("-----------------------------------------------------")
  49. print("Generated  about ["..amount_of_lines.."] lines! (Larger Message means less lines) :( "..calculate.." messages will summon [".. amount_of_lines * calculate .."] lines. Woah!")
  50. print("-----------------------------------------------------")
  51. print("If the following number is larger then "..text_cap.." then there was an error in the script and the message spam will NOT work.")
  52. print("Number = "..#confirmation)
  53. end
Add Comment
Please, Sign In to add comment