Autokiss now shuffles if possible
[mirrors/libpurple-core-answerscripts.git] / purple / answerscripts.d / autokiss.sh
index 46dc712..572dc92 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/sh
 #AutoKiss :-* (just wanna be polite)
-echo $(echo "$ANSW_MSG" | grep -Eo ':-\*|\*IN LOVE\*|:-\{\}|\*KISSING\*');
+shuf="$(which shuf 2>/dev/null)"; [ -x "$shuf" ] || shuf="cat"; #shuffle if possible
+echo $(echo "$ANSW_MSG" | grep -Eo ':-\*|\*IN LOVE\*|:-\{\}|\*KISSING\*' | "$shuf" );
This page took 0.105247 seconds and 4 git commands to generate.