chachin, http://www.hawkee.com/snippet/9077/
I tried to base it around the perl version (Play count, loved track, ability to compare users.)
Another one of these sites: http://www.givesmehope.com/
"Like FMyLife, but for optimists"
triggor is !gmh :>
on *:TEXT:!gmh:#: {
sockopen givesmehope www.givesmehope.com 80
set %givesmehopechan $chan
set %givesmehopecondition class="fmllink">
}
on *:sockopen:givesmehope: {
sockwrite -n $sockname GET /random HTTP/2.0
sockwrite -n $sockname Host: www.givesmehope.com
sockwrite -n $sockname Connection: close
sockwrite -n $sockname $crtlf
}
on *:sockread:givesmehope: {
sockread %givesmehopepage
if (%givesmehopecondition isin %givesmehopepage) {
set %givesmehopequote $remove($nohtml(%givesmehopepage), )
} }
on *:sockclose:givesmehope: {
msg %givesmehopechan 14[ 4Gives Me Hope 14] %givesmehopequote
}
alias nohtml {
var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, )
return %x
}
Boredom inspired along with me being very excited about hearing that Futurama (the series) is coming back \o/ i decided to make a Futuramam quotes script for a bot. I am very new to scripting so its a bit noobish :< but i tried ma best (actually, it took me a while to get it to give out random quotes and be able to select specific ones. But i got it thx to sum1 else's help) Its a bit long and better..
ummmm
i have a small request please
could ihave a version that doesn't show:
[Urban Dictionary] ~ Author: Mh ~ Date: [X] ~ Url: http://www.urbandictionary.com/define.php?page=1&term=[X]
please ;)