允许自定义假人数量

This commit is contained in:
lim114514
2025-01-25 10:56:03 +08:00
parent 50b000604f
commit 9ec6066615
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,6 @@
mod bot_socks5; mod bot_socks5;
mod utils; mod utils;
use rand::Rng;
use reqwest; use reqwest;
use serde_json::Value; use serde_json::Value;
use std::sync::Arc; use std::sync::Arc;
@@ -18,6 +17,8 @@ const SERVER_ADDR: &str = "49.70.3.146:33009";
const UU_URL: &str = "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json"; const UU_URL: &str = "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json";
// 用户名的开头 // 用户名的开头
const USERNAME_PREFIX: &str = "Nikke_"; // 2 3 3 const USERNAME_PREFIX: &str = "Nikke_"; // 2 3 3
// 假人数量
const COUNT :i32 = 300;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
@@ -33,7 +34,7 @@ async fn main() {
let mut handles = Vec::new(); let mut handles = Vec::new();
for i in 0..100 { for i in 0..COUNT {
let lock_clone = thread_lock.clone(); let lock_clone = thread_lock.clone();
// let handle = tokio::spawn(async move { // let handle = tokio::spawn(async move {
// attack_thread(lock_clone).await; // attack_thread(lock_clone).await;

View File

@@ -2,7 +2,6 @@
use rand::distributions::Alphanumeric; use rand::distributions::Alphanumeric;
use rand::Rng; use rand::Rng;
use reqwest;
use crate::USERNAME_PREFIX; use crate::USERNAME_PREFIX;
// 处理json组件(有些TextComponent里面一堆extra看的我头皮发麻,所以整个这个) // 处理json组件(有些TextComponent里面一堆extra看的我头皮发麻,所以整个这个)