Created
October 5, 2022 06:04
-
-
Save emoss08/427c1e73989ff683b3f9de759b7ca2df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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