HEGALE
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user