2016-09-14 12:10:04 -04:00
[ -f functions.sh ] && source functions.sh
userNick = " $1 "
shift
chan = " $1 "
shift
question = " $@ "
if [ " ${ question : -1 : 1 } " != "?" ] ; then
message = "Please phrase your answer in the form of a question."
else
case " ${ question ,, } " in
"do you have" *"balls?" )
if [ [ " $( echo " $question " | tr -cd '[:digit:]' ) " = ~ ^[ 0-9] +$ ] ] ; then
message = " I just have the 2 big ol' hairy balls $( shuf -n 1 -e "on your chin" "in your mouth" ) . "
else
2020-07-30 20:47:39 -04:00
message = " $( shuf -n1 -e "I have 2 greate big ol' hairy balls. You wanna touch 'em?" \
"I've got balls of steel! Steel, steel, steel!" \
"Balls balls balls! I've got balls of steel! Steel, steel, steel! BALLS OF STEEL!" ) "
2016-09-14 12:10:04 -04:00
fi
; ;
2016-09-16 22:00:59 -04:00
"does god exist?" | "is god real?" | "is there a god?" )
message = " According to your $( shuf -e -n1 "mother" "daughter" "sister" "wife" "grandmother" "girl friend" ) I am God. She kept screaming it at me all last night, \"OH GOD ${ nick ^^ } DON'T STOP!\" "
; ;
2016-09-14 12:10:04 -04:00
*)
message = " $( shuf -n1 -e "yes" "no" "maybe" "ask again later" ) . "
esac
fi
msg " $chan " " $userNick : $message "