From 6acbbf1413d439b8c1f3847ec08a10224e41cec9 Mon Sep 17 00:00:00 2001 From: legitnull Date: Sat, 18 Feb 2023 13:39:11 -0700 Subject: [PATCH] num fix --- Cargo.toml | 3 ++- src/modules/invade.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5ad5040..d4cdc95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,5 @@ rand = "0.8.4" regex = "1.7.1" toml = "0.7.2" serde = "1.0.152" -scoped_threadpool = "0.1.9" \ No newline at end of file +tokio-openssl = "0.6.3" +webpki = "0.22.0" \ No newline at end of file diff --git a/src/modules/invade.rs b/src/modules/invade.rs index fc1296e..d57edc8 100644 --- a/src/modules/invade.rs +++ b/src/modules/invade.rs @@ -34,7 +34,7 @@ impl Command for InvadeCommand { let config_value = config_str.parse::().unwrap(); let config: Config = config_value.try_into().unwrap(); - for invader in &config.invaders { + for invader in &config.invaders[0..num_bots] { let thread_channel = invadechannel.to_string(); let thread_invader = invader.to_string(); let config_clone = config.clone();