diff --git a/.vs/DiscordRaid/v16/.suo b/.vs/DiscordRaid/v16/.suo index 5ec1c52..53bcaf2 100644 Binary files a/.vs/DiscordRaid/v16/.suo and b/.vs/DiscordRaid/v16/.suo differ diff --git a/DiscordRaid/Form1.Designer.cs b/DiscordRaid/Form1.Designer.cs index 0f6fcb7..148c4ad 100644 --- a/DiscordRaid/Form1.Designer.cs +++ b/DiscordRaid/Form1.Designer.cs @@ -52,6 +52,7 @@ private void InitializeComponent() this.emojiTextBox = new MetroFramework.Controls.MetroTextBox(); this.reactionMessageID = new MetroFramework.Controls.MetroTextBox(); this.reactionChannelID = new MetroFramework.Controls.MetroTextBox(); + this.failedTokensTextBox = new MetroFramework.Controls.MetroLabel(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); @@ -313,12 +314,23 @@ private void InitializeComponent() this.reactionChannelID.TabIndex = 0; this.reactionChannelID.Theme = MetroFramework.MetroThemeStyle.Dark; // + // failedTokensTextBox + // + this.failedTokensTextBox.AutoSize = true; + this.failedTokensTextBox.Location = new System.Drawing.Point(5, 82); + this.failedTokensTextBox.Name = "failedTokensTextBox"; + this.failedTokensTextBox.Size = new System.Drawing.Size(92, 19); + this.failedTokensTextBox.TabIndex = 30; + this.failedTokensTextBox.Text = "Failed Tokens: "; + this.failedTokensTextBox.Theme = MetroFramework.MetroThemeStyle.Dark; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1067, 476); this.ControlBox = false; + this.Controls.Add(this.failedTokensTextBox); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.quitButton); @@ -366,6 +378,7 @@ private void InitializeComponent() private MetroFramework.Controls.MetroTextBox reactionMessageID; private MetroFramework.Controls.MetroTextBox reactionChannelID; private MetroFramework.Controls.MetroButton inviteButton; + private MetroFramework.Controls.MetroLabel failedTokensTextBox; } } diff --git a/DiscordRaid/Form1.cs b/DiscordRaid/Form1.cs index 641c629..9d8550e 100644 --- a/DiscordRaid/Form1.cs +++ b/DiscordRaid/Form1.cs @@ -16,7 +16,9 @@ public partial class Form1 : MetroFramework.Forms.MetroForm { bool invited, stop; List tokenList = new List(); + List badTokens = new List(); string invite, channelID, message, timeout, guildID; + int failedTokens = 0; public Form1() @@ -87,10 +89,19 @@ private void inviteButton_Click(object sender, EventArgs e) IRestResponse response = client.Execute(request); if (!response.IsSuccessful) { - tokenList.Remove(token); + //tokenList.Remove(token); + badTokens.Add(token); + failedTokens += 1; + failedTokensTextBox.Text = "Failed Tokens: " + failedTokens.ToString(); + } else + { + dynamic data = JsonConvert.DeserializeObject(response.Content); + guildID = data.guild.id; } - dynamic data = JsonConvert.DeserializeObject(response.Content); - guildID = data.guild.id; + } + foreach (string token in badTokens) + { + tokenList.Remove(token); } } else diff --git a/DiscordRaid/bin/Debug/DiscordRaid.exe b/DiscordRaid/bin/Debug/DiscordRaid.exe index 2ca0b44..295b17f 100644 Binary files a/DiscordRaid/bin/Debug/DiscordRaid.exe and b/DiscordRaid/bin/Debug/DiscordRaid.exe differ diff --git a/DiscordRaid/bin/Debug/DiscordRaid.pdb b/DiscordRaid/bin/Debug/DiscordRaid.pdb index 5e73d13..fa0657e 100644 Binary files a/DiscordRaid/bin/Debug/DiscordRaid.pdb and b/DiscordRaid/bin/Debug/DiscordRaid.pdb differ diff --git a/DiscordRaid/bin/Debug/tokens.txt b/DiscordRaid/bin/Debug/tokens.txt index dbfb469..6af36a1 100644 --- a/DiscordRaid/bin/Debug/tokens.txt +++ b/DiscordRaid/bin/Debug/tokens.txt @@ -1 +1 @@ -Put Your Tokens Here. Make Sure There Isn't An Empty Line. \ No newline at end of file +Put Your Tokens Here \ No newline at end of file diff --git a/DiscordRaid/obj/Debug/DiscordRaid.csproj.GenerateResource.cache b/DiscordRaid/obj/Debug/DiscordRaid.csproj.GenerateResource.cache index 3b56981..6486052 100644 Binary files a/DiscordRaid/obj/Debug/DiscordRaid.csproj.GenerateResource.cache and b/DiscordRaid/obj/Debug/DiscordRaid.csproj.GenerateResource.cache differ diff --git a/DiscordRaid/obj/Debug/DiscordRaid.csprojAssemblyReference.cache b/DiscordRaid/obj/Debug/DiscordRaid.csprojAssemblyReference.cache index 73a3ef1..5105e7a 100644 Binary files a/DiscordRaid/obj/Debug/DiscordRaid.csprojAssemblyReference.cache and b/DiscordRaid/obj/Debug/DiscordRaid.csprojAssemblyReference.cache differ diff --git a/DiscordRaid/obj/Debug/DiscordRaid.exe b/DiscordRaid/obj/Debug/DiscordRaid.exe index 2ca0b44..295b17f 100644 Binary files a/DiscordRaid/obj/Debug/DiscordRaid.exe and b/DiscordRaid/obj/Debug/DiscordRaid.exe differ diff --git a/DiscordRaid/obj/Debug/DiscordRaid.pdb b/DiscordRaid/obj/Debug/DiscordRaid.pdb index 5e73d13..fa0657e 100644 Binary files a/DiscordRaid/obj/Debug/DiscordRaid.pdb and b/DiscordRaid/obj/Debug/DiscordRaid.pdb differ