This commit is contained in:
Peter Beluzsar
2026-02-09 00:47:36 +01:00
parent 33a0559562
commit d226de7ccc
2 changed files with 22 additions and 6 deletions
+12 -1
View File
@@ -1,12 +1,17 @@
# Hornetsay # Hornetsay
## Installation:
`chmod +x hornetsay` to make it executable
## Usage: ## Usage:
By default `hornetsay` takes the input from the stdio and says it :) By default `hornetsay` takes the input from the stdio and says it :)
Best practice is to `|` into it, like this: `echo "hello :) | ./hornetsay"` Best practice is to `|` into it, like this: `echo "hello :) | ./hornetsay"`
### Flags: ### 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 - SHAW
- HEGALE - HEGALE
@@ -14,5 +19,11 @@ Best practice is to `|` into it, like this: `echo "hello :) | ./hornetsay"`
And many more. 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: ### Disclaimer:
I did not draw Hornet I stole her form [here](https://emojicombos.com/hornet.-ascii-art) I did not draw Hornet I stole her form [here](https://emojicombos.com/hornet.-ascii-art)
+10 -5
View File
@@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
AUTO=false STD=true
while getopts "a" flag; do while getopts "at" flag; do
case "$flag" in case "$flag" in
a) a)
shaws=("SHAW!" "HEAGALE" "GIT GUD" "Fren." "HahAH" "EDINO!") shaws=("SHAW!" "HEAGALE" "GIT GUD" "Fren." "HahAH" "EDINO!")
@@ -10,16 +10,21 @@ while getopts "a" flag; do
random_index=$(( RANDOM % length )) random_index=$(( RANDOM % length ))
text=${shaws[$random_index]} text=${shaws[$random_index]}
AUTO=true STD=false
;;
t)
text=$(date)
STD=false
;; ;;
*) *)
echo "gatya" text=" :( "
STD=false
;; ;;
esac esac
done done
if [ $AUTO = false ] if [ $STD = true ]
then then
read text read text
fi fi