Ticket #1314: USER1.SCRIPT

File USER1.SCRIPT, 1.3 KB (added by s0i0n@…, 21 months ago)

user script for psybnc

Line 
1; Prowl PUSH Addon v0.2 (by DerFlash)
2;
3; Changes:
4;    v0.2:
5;      * Added '-O /dev/null' again to prevent wget from spamming into the psyBNC directory.
6
7; Prowl - query & nick-alert (if user is on AND (its a pm OR it contains the usernick))
8server PRIVMSG * * *     if [[ $USERON == 0 ]] && ( [[ $P3 == $USERNICK ]] || [[ `echo $CONTENT | grep -ci $USERNICK` != 0 ]] ); then FC1=$(echo "$NICK @ $(if [[ $P3 == $USERNICK ]]; then echo 'IRC'; else echo $P3; fi )" | perl -MURI::Escape -lne 'print uri_escape($_)'); FC2=$(echo "$CONTENT" | perl -MURI::Escape -lne 'print uri_escape($_)'); wget -q -O /dev/null --no-check-certificate "https://prowl.weks.net/publicapi/add?apikey=01c3f91cde3b7e477d5403473efc76456bef6724&priority=0&application=$FC1&description=$FC2+http%3A%2F%2Fopen.roomsapp.mobi" > /dev/null; fi
9
10; Prowl - word highlight
11server PRIVMSG * #gamingjunkies "*s0i0nPhoney*"     if [[ $USERON == 0 ]]; then FC1=$(echo "$NICK @ $CHANNEL" | perl -MURI::Escape -lne 'print uri_escape($_)'); FC2=$(echo "$CONTENT" | perl -MURI::Escape -lne 'print uri_escape($_)'); wget -q -O /dev/null --no-check-certificate "https://prowl.weks.net/publicapi/add?apikey=01c3f91cde3b7e477d5403473efc76456bef6724&priority=0&application=$FC1&description=$FC2+http%3A%2F%2Fopen.roomsapp.mobi" > /dev/null; fi