Autokiss now shuffles if possible
[mirrors/libpurple-core-answerscripts.git] / purple / answerscripts.d / autokiss.sh
index b054c5c4ea7478a360038b39bf1416c230ba784c..572dc928f6cda7e8f6b6c274fedc25d36091eacb 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/sh
 #AutoKiss :-* (just wanna be polite)
-echo "$PURPLE_MSG" | grep -o ':-\*';
+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.107692 seconds and 4 git commands to generate.