From 7305b69fcbade127dad9c711cdb2d81fc61f15bf Mon Sep 17 00:00:00 2001 From: deadvey Date: Sun, 12 Jan 2025 01:04:27 +0000 Subject: [PATCH] insults --- README.md | 3 + insults/Cargo.toml | 7 ++ insults/insults | 229 +++++++++++++++++++++++++++++++++++++++ insults/src/.main.rs.swp | Bin 0 -> 12288 bytes insults/src/main.rs | 35 ++++++ 5 files changed, 274 insertions(+) create mode 100644 insults/Cargo.toml create mode 100644 insults/insults create mode 100644 insults/src/.main.rs.swp create mode 100644 insults/src/main.rs diff --git a/README.md b/README.md index 918173a..e41fdc7 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ Greet them as we have before. Watch the nibblers spin and snap. ``` +# Insults +Generates an insulting phrase for someone :D + # Rubiks Cube thing (WIP) It's just a rubiks cube in the terminal, written in rust.
![example image for rubiks](screenshots/rubiks.png) diff --git a/insults/Cargo.toml b/insults/Cargo.toml new file mode 100644 index 0000000..817a2ea --- /dev/null +++ b/insults/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "insults" +version = "0.1.0" +edition = "2021" + +[dependencies] +rand = "0.8.5" diff --git a/insults/insults b/insults/insults new file mode 100644 index 0000000..afb041e --- /dev/null +++ b/insults/insults @@ -0,0 +1,229 @@ +apish +retard +bald-pated +artless +barren-spirited +beslubbering +beast-eating +calmunating +cautelous +churlish +coldblooded +concupscible +covetous +crudy +cuckoldly +deceptious +degenerate +facinerious +fawning +finical +fusty +goastish +gorbellied +greasy +heinous +incontinent +inexecrable +insolent +lecherous +lisping +loathly +lubberly +lumpish +mammering +musty +naughty +obscene +overgorged +panderly +pestiferous +plumfy +puking +rascally +reeky +sanctimonious +sickly +solbbery +sneaping +spongy +stinking +superserviceable +thrasonical +unhandsome +unwiped +viperous +wanton +warped +witless +breast-eating +beef-witted +boiled-brained +clay-brained +dirt-rotten +dizzy-eyed +dull-brained +eye-offending +fat-kidneyed +flap-eared +foul-mouthed +half-blooded +hard-haired +hell-governed +hollow-eyed +hook-nosed +ill-tempered +knotty-pated +leaden-footed +leptus leering +lily-livered +logger-headed +lust-breathed +motley-minded +mouse-eaten +muddy-mettled +nook-shotten +one-trunk-inheriting +pale-hearted +pigeon-livered +puke-stocking +puppy-headed +rank-scented +rug-headed +rump-fed +self-glorious +senseless-obstinate +sheep-biting +shrill-tongued +snail-paced +sodden-witted +stretch-mouthed +stubborn-hard +swag-bellied +tardy-gaited +thick-eyed +three-suited +thripe-visaged +under-honest +uneducated +useless +white-livered +barmy +gormless +manky +minger +naff +idiotic +bigotted +stupid +blue-balled +arrogant +retarded +petulent +bigoted +phscopathic +small-minded +non-linux-user +pengiunless +crude +muppet +pikey +dodgy + +abomination +arch-villain +baggage +bed-presser +blockhead +braggart +bugbear +bull's pizzle +codpiece +capocchia +cornuto +costermonger +cot-quean +coxcomb +cozener +dissembler +dullard +dunghill +fashion-monger +fleshmonger +foot-licker +fustilarian +geck +giglet +horn-beast +horse-back-breaker +idiot-worshipper +jack-a-nape +lewdster +malignancy +malmsey-butt +measle +miscreant +mushrump +ox-head +parasite +pig-nut +pin-buttock +potato-finger +princox +purpose-chnager +quatch-buttock +rabbit-sucker +rampallian +rat-catcher +ratsbane +renegatho +scum +scut +starve-lackey +stock-fish +ticklebrain +under-skinner +villiago +cum-bucket +retard +tosser +wheevil +cretin +wanker +slag +daft-cow +arsehole +chav +git +nutter +pillock +plonker +prat +trollop +twat +knob-head +bell-end +skiver +wazzock +ninny +berk +airy-fairy +ankle-biter +arse-licker +arsemonger +chuffer +gannet +ligger +maggot +mingebag +two-dicked-dog +window +apple +cunt +dick +cock +cum-sock +phallus +pussy +bigot +capitalist diff --git a/insults/src/.main.rs.swp b/insults/src/.main.rs.swp new file mode 100644 index 0000000000000000000000000000000000000000..75503323a419a77dbf0147921f52abe05b9cd967 GIT binary patch literal 12288 zcmeI2&ui2`6vt;36w#{a(aY;rYyxezKSXM_tw-@7V%1)32{Aj_MAMliGifVj_29)z z&;Ak8d%Y@n@DEV*;8FDCK~TK;CdoEiTU((g{?|$axP?~#V^VhD!WoMk> zIL+9bV^7-a?c25Uhik0G{nj#nXrAmj5*heOB$amZtCn2yW3kJQM`glBAX~hVW=c0= zp|V7)hDw8m+2y2amyNVU1c<=F2xK}Oof=@16XRnh(NKL5&Yrn*u$;7;2oM1xKm>>Y z5g-CYfCvzQe~N(a)YxNme5iCiRL-^E=JJ*%B0vO)01+SpM1Tko0U|&IhyW2F0z}{+ zB;dCgJ9?b4=P2|4|K8vK-%c_13H1*37PX05MNOfOpx&QkOry@Behe`79rY3Q8nuCX zhFV9hp>CqCqAb+U6O4UDeL;Ojy+SRbCQ+lP59s3sY7@1AGQM7-o}y?F0U|&IhyW2F z0z`la5P|=LK)2gvfaAsk%d%~jUw6`2=s~N#)?Mf_6R>B9sE>TwCen3vl;Rh@UMkv_?Xv*-kg6x=FP7A}n0%HRl8 z)&16e9_VaD&&Jkc^s;rmzo9C0cUPfI!CQq`fN`HKc{22>J+M|Ft-M!P#$Ofb zbTSoLNi4XdrKdEW0mA9~DLhde;xOk3gEOGhjAMF}#f}C5?mOu&}i;NdX zTGWBUKvBPXfT@gkn3;iky|iV}>K8$`SXI^t!tG94#{IexPk#tGk1M7c1}gXvrOk io::Result<()> { + let file_contents: String = fs::read_to_string("insults")?; + let lines: Vec<&str> = file_contents.split('\n').collect(); + let mut adjectives: Vec = Vec::new(); + let mut nouns: Vec = Vec::new(); + let mut noun = false; // nouns is set to true when we have reached the nouns section in the file + // so should start pushing insults to nouns instead of adjectives + let num_of_adjectives: u64 = 2; + + for line in lines { + if line == "" { + noun = true; + continue; + } + if noun { + nouns.push(line.to_string()); + } + else if noun != true { + adjectives.push(line.to_string()); + } + } + + for _x in 0..num_of_adjectives { + let random_adjective = adjectives[rand::thread_rng().gen_range(0..adjectives.len())].clone(); + print!("{}, ", random_adjective); + } + let random_noun = nouns[rand::thread_rng().gen_range(0..nouns.len())].clone(); + print!("{}\n", random_noun); + + Ok(()) +}