Skip to content

Commit

Permalink
update leaderboard recovery tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ana_rchy committed Jun 1, 2024
1 parent a439552 commit 6225388
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
target/
token.txt
assets/leaderboard.bin
leaderboard-recovery-tool/leaderboard.bin
eveningbot.log
5 changes: 5 additions & 0 deletions leaderboard-recovery-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ fn main() {
let mut leaderboard = HashMap::<u64, u16>::new();

println!("enter entries in format [user_id],[count]");
println!("enter nothing to exit");

loop {
let mut input = String::new();
io::stdin().read_line(&mut input).expect("cant read input");
if input == "\n" {
std::process::exit(0);
}

let mut params = input.trim_end().split(",");
let id = params.next().unwrap().parse::<u64>().unwrap();
Expand Down

0 comments on commit 6225388

Please sign in to comment.