Skip to content

Instantly share code, notes, and snippets.

@dnnsmnstrr
Created October 3, 2020 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnnsmnstrr/ccf3e91373094b0303aad4ae2c34cd8a to your computer and use it in GitHub Desktop.
Save dnnsmnstrr/ccf3e91373094b0303aad4ae2c34cd8a to your computer and use it in GitHub Desktop.
# Say a random curseword
function cuss () {
CUSS_WORDS=("fuck" "shit" "bitch" "asshole" "motherfucker" "cunt")
VOICES=("Albert" "Zarvox" "Alex" "Bad News" "Deranged" "Trinoids" "Hysterical")
RANDOM_VOICE=${VOICES[$( jot -r 1 0 $((${#VOICES[@]} - 1)) )]}
CUSS=${CUSS_WORDS[$( jot -r 1 0 $((${#CUSS_WORDS[@]} - 1)) )]}
echo $CUSS
say ${1:-$CUSS} -v ${2:-$RANDOM_VOICE}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment