From d226de7cccdf998c63da708e54d1c1fb0f7a7dc0 Mon Sep 17 00:00:00 2001 From: Peter Beluzsar Date: Mon, 9 Feb 2026 00:47:36 +0100 Subject: [PATCH] HEGALE --- README.md | 13 ++++++++++++- hornetsay | 15 ++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7cbd87d..d6039c9 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,17 @@ # Hornetsay +## Installation: +`chmod +x hornetsay` to make it executable + ## Usage: By default `hornetsay` takes the input from the stdio and says it :) Best practice is to `|` into it, like this: `echo "hello :) | ./hornetsay"` ### Flags: -`-a` - automatic voice generation from a selection of expressive voice lines. Includes bangers such as: +`-a` + +Little Miss Grownup will say something from a selection of expressive voice lines. Includes bangers such as: - SHAW - HEGALE @@ -14,5 +19,11 @@ Best practice is to `|` into it, like this: `echo "hello :) | ./hornetsay"` And many more. +`-t` + +The Red Maiden will tell you what time it is :) + +If you mess up the flag she will be just sad + ### Disclaimer: I did not draw Hornet I stole her form [here](https://emojicombos.com/hornet.-ascii-art) diff --git a/hornetsay b/hornetsay index 6dba916..009df4e 100755 --- a/hornetsay +++ b/hornetsay @@ -1,8 +1,8 @@ #!/bin/bash -AUTO=false +STD=true -while getopts "a" flag; do +while getopts "at" flag; do case "$flag" in a) shaws=("SHAW!" "HEAGALE" "GIT GUD" "Fren." "HahAH" "EDINO!") @@ -10,16 +10,21 @@ while getopts "a" flag; do random_index=$(( RANDOM % length )) text=${shaws[$random_index]} - AUTO=true + STD=false + ;; + t) + text=$(date) + STD=false ;; *) - echo "gatya" + text=" :( " + STD=false ;; esac done -if [ $AUTO = false ] +if [ $STD = true ] then read text fi