Advertisement
illpastethat

Cleverbot website for st34lthx

Feb 19th, 2012
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.67 KB | None | 0 0
  1. ;this is just the socket part
  2. on *:sockopen:alice*: {  
  3.   var %x sockwrite -n $sockname
  4.   %x GET $+(/,clever4java.php?id=b4prFHCirb&s=,$($+(%,alice.,$remove($sockname,alice.),.input),2)) HTTP/1.1
  5.   %x Connection: keep-alive
  6.   %x Accept: text
  7.   %x Accept-Language: en-US,en;q=0.8
  8.   %x Host: noneevr2.com
  9.   %x
  10. }
  11.  
  12. on *:SOCKREAD:alice*: {
  13.   if ($sockerr) {
  14.     echo -a SOCKET ERROR: $sockerr
  15.     halt
  16.   }
  17.   sockread &t
  18.   var %sockreader $bvar(&t,$calc($bfind(&t,1,13 10 13 10) + 4) $+ -).text
  19.   $($+(%,alice.,$remove($sockname,alice.),.msgtype),2) %sockreader
  20. }
  21.  
  22. on *:sockclose:alice*: {
  23.   unset $+(%,alice.,$remove($sockname,alice.),.*)
  24.   sockclose $sockname
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement