Advertisement
Dillion1995

SPAMM

Feb 14th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. /**
  2. * Spam Script
  3. * @copyright 2015 beautifulAngel38
  4. * @description Spams messages
  5. */
  6.  
  7. var PREDEFINED_COUNT = 41;
  8. var USE_DC = false;
  9.  
  10. var phrases = ['Hi', 'haha', 'hohoho santa says', 'hohoho xD', 'ily', 'i am bored bestie', 'i am too cool like you','I love you ', 'You are amazing', ' you are the honestly best', 'You win all the time'];
  11.  
  12. function getRandomPhrase()
  13. {
  14. return phrases[Math.floor(Math.random()*phrases.length)];
  15. }
  16.  
  17. function spam()
  18. {
  19. $("#Comment").val(getRandomPhrase() + Math.floor(Math.random()*90000) + 10000);
  20. $("#chatForm").submit();
  21. }
  22.  
  23. function repeat()
  24. {
  25. for(var i = 0; i < PREDEFINED_COUNT; i++)
  26. {
  27. spam();
  28. }
  29. }
  30.  
  31. if(USE_DC)
  32. {
  33. repeat();
  34. }
  35. else {
  36. setInterval(function(){spam();},50);
  37. }
  38. // complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement