Pimp translator added to the bot.

This commit is contained in:
Storm Dragon 2016-09-03 23:05:53 -04:00
parent 929e6ae037
commit ecd5402450

7
modules/pimp/pimp.sh Executable file
View File

@ -0,0 +1,7 @@
[ -f functions.sh ] && source functions.sh
shift
chan="$1"
shift
pimpText="${@#pimp }"
msg "$chan" "$(curl -s --data-urlencode English="$pimpText" --data-urlencode submit="Submit send" http://joel.net/EBONICS/Translator | grep ' <textarea id="Ebonics" name="Ebonics" class="materialize-textarea validate" required>' | sed -e 's/^ <textarea id="Ebonics" name="Ebonics" class="materialize-textarea validate" required>//' -e "s/&#39;/'/g" -e 's#</textarea>##' -e 's/^$//g' -e 's/"/\\"/g')"