Jethro commented on a Page, !BroCode bot script  -  Mar 31, 2010

Yes, as Blackvenomm666 said. Guitar, there is a site I've just found at www.brocode.co.uk
I then write up a socket script to fetch a message (there are 200 bro code articles there) from the website:

on *:text:$($strip(!brocode)):#: {
  if (!%f) { set -z %f 5 | $iif($sock(b),sockclose b)
  sockopen b thebrocode.co.uk 80 | sockmark b .msg # }
}
on *:sockopen:b: {
  var %b sockwrite -nt $sockname
  %b get $+(/thecode.cgi?limit=,$r(0,50),&curpage=,$r(1,6),&perpage=10) http/1.1 
  %b host: thebrocode.co.uk | %b $crlf
}
on *:sockread:b: {
  var %r /<a href=\42thecode.cgi\77article=\d+\42>(.*)</a></div>/, %s | sockread %s
  if ($regex(%s,%r)) { $replace($sock(b).mark $regml(1),&#39;,') | sockclose $sockname }
}

This will output a random bro code to the channel from 1 through 200 :-) People can only command the script every 5 seconds to prevent abuse.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.