Crates.io | rocheck |
lib.rs | rocheck |
version | 0.2.3 |
source | src |
created_at | 2020-01-16 10:27:40.250277 |
updated_at | 2020-01-20 21:57:37.686237 |
description | RoCheck implementation ported to Rust |
homepage | |
repository | https://github.com/Fireboltofdeath/RoCheck |
max_upload_size | |
id | 199059 |
size | 10,297 |
An implementation of grilme99's RoCheck module in Rust. Credits to him for the method used.
[dependencies]
rocheck = "0.2"
Using RoCheck is simple, simply feed it in a couple values, and boom!
use rocheck::RoCheck;
async fn check() -> Result<(), Box<dyn std::error::Error>> {
let client = RoCheck::new("Your Bot Token");
let test_ip = "127.0.0.1";
let job_id = "SomeLongStringOfCharactersShouldGoHere";
let place_id = 123456;
let is_roblox = client.verify_ip(place_id, job_id, test_ip).await?;
if is_roblox {
println!("Hoorah! You're a real roblox server!");
}
Ok(())
}