Advertisement
ChaosityYT

code

Mar 23rd, 2020
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. /*
  2. spam = true;
  3. new Thread(delegate() // you need to put this in every option but with a new command | You need to make the tokens save so it can check them
  4. {
  5. bool flag2 = Form1.spam;
  6. if (flag2)
  7. {
  8. while (Form1.spam)
  9. {
  10. using (WebClient webClient = new WebClient())
  11. {
  12. using (StreamReader streamReader = File.OpenText("tokens.txt"))
  13. {
  14. string[] array = streamReader.ReadToEnd().Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
  15. foreach (string text in array)
  16. {
  17. try
  18. {
  19. NameValueCollection nameValueCollection = new NameValueCollection();
  20. nameValueCollection["content"] = "pls work"; // The commands that you want it to do
  21. webClient.Headers["authorization"] = text;
  22. byte[] array3 = webClient.UploadValues("https://discordapp.com/api/v6/channels/" + this.chanelid.Text + "/messages", nameValueCollection);
  23. }
  24. catch (WebException ex)
  25. {
  26. string text2 = new StreamReader(ex.Response.GetResponseStream()).ReadToEnd();
  27. bool flag3 = text2.Contains("401: Unauthorized");
  28. if (flag3)
  29. {
  30. MessageBox.Show("A Token is invalid, please recheck.", "");
  31. }
  32. else
  33. {
  34. bool flag4 = text2.Contains("You need to verify your account in order to perform this action.");
  35. if (flag4)
  36. {
  37. MessageBox.Show("A Token is unverified, please recheck.", "");
  38. }
  39. else
  40. {
  41. bool flag5 = text2.Contains("TOO MANY");
  42. if (flag5)
  43. {
  44. Thread.Sleep(3000);
  45. }
  46. else
  47. {
  48.  
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. }
  58. }).Start();
  59.  
  60. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement