Skip to content

Instantly share code, notes, and snippets.

@emoss08
Created October 5, 2022 06:04
Show Gist options
  • Save emoss08/427c1e73989ff683b3f9de759b7ca2df to your computer and use it in GitHub Desktop.
Save emoss08/427c1e73989ff683b3f9de759b7ca2df to your computer and use it in GitHub Desktop.
/*
I was inspired to write this from one of my favorite twitch streamers.
This script decides whether or not you should considering selling your toes on OnlyToes.
Based on your input you will be taken to the right resource
*/
use webbrowser;
fn main() {
println!("What is your gender? (M (MALE) OR F(FEMALE), N(NON-BINARY))");
let mut input_string = String::new();
std::io::stdin().read_line(&mut input_string).expect("Failed to read line");
let input_string = input_string.trim();
if input_string == "M" {
webbrowser::open("https://clips.twitch.tv/FantasticImportantMeatloafSoBayed-1iSmZZ0Nb09n6u6J").unwrap();
} else if input_string == "F" || input_string == "N" {
webbrowser::open("https://www.twitch.tv/techygrrrl/clip/SpoopyCrispyGarlicHumbleLife-M2BHB_2j3lxFwwTL?filter=clips&range=all&sort=time").unwrap();
} else {
println!("Invalid input");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment