stormbot/modules/pimp/pimp.sh.orig

12 lines
708 B
Bash
Executable File

# The site on which this module relied is now down.
# This module is here in the hopes that it will one day come back.
# Thanks to joel.net for years of laughs.
[ -f functions.sh ] && source functions.sh
shift
chan="$1"
shift
pimpText="${*#pimp }"
echo "$chan" "$(curl -L -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')"