fixed the multi word trigger section of keywords.sh
This commit is contained in:
parent
3d8f2325a5
commit
64988dec7b
@ -21,6 +21,8 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Example of dealing with multi word triggers.
|
# Example of dealing with multi word triggers.
|
||||||
if [[ "${wordList//[[:space:]]/}" =~ nowplaying ]]; then
|
# Reset wordList without sorting it and with spaces removed.
|
||||||
act "$chan" "cranks the volume up to 11!"
|
wordList="$(echo "${@,,}" | tr -d '[:space:]')"
|
||||||
|
if [[ "$wordList" =~ .*nowplaying:.*-.* ]]; then
|
||||||
|
act "$chan" "$(shuf -n1 -e "cranks the volume up to 11" "got soooo high at that show" "boogies down the the sound of the band")!"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user