Guest User

Untitled

a guest
Jan 18th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. /*
  2. Discord Voice Channel Spammer
  3. Made by @hunter_bdm
  4.  
  5. How to Start:
  6. 1. Open Discord
  7. 2. Ctrl+Shift+i
  8. 3. Paste script in console
  9.  
  10. How to Stop:
  11. 1. Run "stop=true" in console
  12. */
  13.  
  14. global.stop = false;
  15.  
  16. global.channelOne = 'general'; // Channel you want to hear voice from
  17. global.channelTwo = 'lobby'; // Other open channel you can switch to
  18.  
  19. global.divOne = divByText(channelOne);
  20. global.divTwo = divByText(channelTwo);
  21.  
  22. global.$ = $;
  23.  
  24. function divByText(searchText) {
  25. var divTags = $("div .nameDefaultVoice-1swZoh")
  26. var divTags = document.getElementsByTagName("div");
  27. var found;
  28.  
  29. for (var i = 0; i < divTags.length; i++) {
  30. if (divTags[i].textContent == searchText && (divTags[i].className.includes('nameDefaultVoice') || divTags[i].className.includes('nameConnectedVoice'))) {
  31. found = divTags[i];
  32. return found;
  33. }
  34. }
  35. }
  36.  
  37. function start() {
  38. if (!stop) {
  39. divTwo.click();
  40. divOne.click();
  41. setTimeout(() => start(), 50);
  42. }
  43. }
  44.  
  45. start();
Add Comment
Please, Sign In to add comment