Pimp translator added to the bot.
This commit is contained in:
parent
929e6ae037
commit
ecd5402450
7
modules/pimp/pimp.sh
Executable file
7
modules/pimp/pimp.sh
Executable 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/'/'/g" -e 's#</textarea>##' -e 's/^$//g' -e 's/"/\\"/g')"
|
Loading…
Reference in New Issue
Block a user