Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Flood = function(Msg, Embed, Limit)
- local Spam = ""
- if Embed == "```" then
- Msg = "```"..Msg.."```"
- repeat
- Spam = Spam..""..Msg
- until Spam:len() + Msg:len() >= Limit
- else
- Msg = Embed..""..Msg..""..Embed
- repeat
- Spam = Spam..""..Msg.."\n"
- until Spam:len() + Msg:len() >= Limit
- end
- return Spam
- end
- --[[
- Example:
- local Spam = Flood("Msg U Want", "Embed Choice", Character_Limit)
- local Spam = Flood(".", "```", 2000) 2000 is discord's text limit]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement