2020-07-29 20:12:32 -04:00
|
|
|
[ -f functions.sh ] && source functions.sh
|
|
|
|
|
|
|
|
userNick="$1"
|
|
|
|
shift
|
|
|
|
chan="$1"
|
|
|
|
shift
|
2020-07-30 00:45:53 -04:00
|
|
|
message="${*}"
|
|
|
|
spin="${message##*[[:space:]]}"
|
2020-07-29 20:12:32 -04:00
|
|
|
|
2020-07-30 00:45:53 -04:00
|
|
|
message="${message} $spin $spin $spin "
|
2020-07-29 20:12:32 -04:00
|
|
|
if [[ "$spin" =~ [aeiou].$ ]]; then
|
|
|
|
for i in $(seq 10) ; do
|
|
|
|
spin+="${spin: -1}${spin: -1}"
|
|
|
|
message+="$spin "
|
|
|
|
done
|
|
|
|
else
|
|
|
|
for i in $(seq 10) ; do
|
|
|
|
spin+="${spin: -2}"
|
|
|
|
message+="$spin "
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg "$chan" "$message"
|