Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Discord Spam Text By Defeated Purpose
- function flood(text, embedchoice, limit, calculate)
- text = tostring(text) or "."
- embedchoice = tonumber(embedchoice) or 5
- limit = tonumber(limit) or 2000
- calculate = tonumber(calculate) or 10
- message = text
- message_limit = #message
- platform = "nil"
- --Choose Type of embed
- -- * (Slanted) [1]| ** (Bold) [2]| *** (Slanted & Bold) [3] | `` (Code Block v1)[4]| ``` (Code Block v2)[5] <- Reccommended | ~~ (Strike-Through)[6] | No embed (Self-Explainitory)[7]
- answer = embedchoice --Best spam method, reccommend do not change.
- if answer == 1 then
- embed = "*" elseif answer == 2 then
- embed = "**" elseif answer == 3 then
- embed = "***" elseif answer == 4 then
- embed = "``" elseif answer == 5 then
- embed = "```" elseif answer == 6 then
- embed = "~~" elseif answer == 7 then
- embed = " " elseif answer ~= 1 or 2 or 3 or 4 or 5 or 6 then
- embed = "ERROR, EMBED CHOICE NOT DETECTED!"
- end
- embed_limit = #embed
- text = ""..embed..""..message..""..embed..""
- amount_of_text = #text
- text_counter = #text
- text_cap = limit
- spam = {}
- line = 1
- while true do
- table.insert(spam, text)
- line = line + 1
- text_counter = text_counter + amount_of_text
- if text_counter > text_cap or text_counter == text_cap then
- break
- end
- end
- if text_counter > text_cap then
- text_counter = text_counter - amount_of_text
- end
- confirmation = table.concat(spam)
- amount_of_lines = line
- print("Generated Spammy Text from Defeated Purpose's script")
- print("-----------------------------------------------------")
- print(table.concat(spam))
- print("-----------------------------------------------------")
- print("Generated "..text_counter.." characters which is "..text_counter.." out of "..text_cap.." "..platform.."'s message limit!")
- print("-----------------------------------------------------")
- print("Generated about ["..amount_of_lines.."] lines! (Larger Message means less lines) :( "..calculate.." messages will summon [".. amount_of_lines * calculate .."] lines. Woah!")
- print("-----------------------------------------------------")
- 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.")
- print("Number = "..#confirmation)
- end
Add Comment
Please, Sign In to add comment