public DiscordFlooder(DiscordFlooderInbound inbound) { IsRunning = true; TokenList = GetList(inbound.TokenListPath); ProxyList = GetList(inbound.ProxyListPath); Delay = inbound.Delay; InviteLink = inbound.InviteLink; ChannelId = inbound.ChannelId; Message = inbound.Message; SkipJoin = inbound.SkipJoin; }
private void ExecuteButton_Click(object sender, EventArgs e) { if (!Core.DiscordFlooder.IsRunning) { var inbound = new DiscordFlooderInbound(TokenPath, ProxyPath, Delay, InviteLink, ChannelId, Message, SkipJoin); new Core.DiscordFlooder(inbound).Start(); executeButton.Text = "Stop"; } else { Core.DiscordFlooder.Stop(); executeButton.Text = "Start"; } }