Isoleet Reader

By Cookies on Feb 12, 2011

This is a very basic socket script my friend ( Gemster ) helped me make, basically it just reports back the latest post on www.isoleet.com so this is kinda of pointless unless you like android :)
And thank you jethro_ :))

COMMANDS

!news

on *:sockread:news: { 
  if !$sockerr { 
    tokenize 32 $sock(news).mark 
    var %news, %y /<[^>]+>/g 
    sockread %news | if $regex(%news,/(.+)<hr />/) { 
      [ [ $1-3 ] ] | sockclose $sockname 
    } 
  } 
  else { $1-2 ERROR! } 
} 
on *:sockopen:news: { 
  if $sockerr { 
    $token($sock($sockname).mark,1-2,32) ERROR! 
  } 
  else { 
    var %x sockwrite -nt $sockname 
    %x GET /feed.php HTTP/1.0 
    %x Host: $+($sock(news).addr,$str($crlf,2)) 
  } 
} 
on $*:text:/^!news$/iS:#:{ 
  if !%t { inc -u3 %t 
    $iif($sock(news), sockclose $v1) 
    sockopen news www.isoleet.com 80 
    msg # 7 This is the most recent post on www.IsoLeet.com
    sockmark news msg # $!replace($regsubex($regml(1)$& 
      $+ ,%y,),&quot;,",Statistics:,$chr(32)) 
  } 
}

Comments

Sign in to comment.
Jethro   -  Feb 12, 2011

Cookies, may I invite you to post your request at the forum? You get more answers and feedback that way. Please be as detailed as possible.

 Respond  
Cookies   -  Feb 12, 2011

:) yes it comes in handy, im TRYING to find a snipplet that will report the newest peak user count in a room, along with !peak commands. but all the ones posted fail.. epicly, do u know any :)

 Respond  
Jethro   -  Feb 12, 2011

lol Calm down, you surely are a tough cookie. :P Perhaps I sounded a bit straightforward, saying you submitted this as you own. I meant no harm but to pinpoint that this was a forum request. Generally I wouldn't mind whether it was altered, ripped or whatnot. I'm glad that it's served its purpose of making a user's life easier without checking the actual website. :-)

 Respond  
Cookies   -  Feb 12, 2011

i didn't submit it as my own :( i said gemster, i didn't realize YOU or anyone else had made it. alot of people are using it to get latest news from isoleet.com so i thought i would share. but if you see where i said any of them are "mine" plz, do let me know.

 Respond  
Gemster   -  Feb 12, 2011

ya, well android is a big thing atm :D

Thanks
Gemster

 Respond  
Jethro   -  Feb 12, 2011

I'm glad this snippet can be shared with people who're interested. ;)

 Respond  
Gemster   -  Feb 12, 2011

Yes, this was a request from Cookie that i posted on the forums, My fault really for not saying.

Thanks
Gemster

 Respond  
Jethro   -  Feb 12, 2011

Actually I modified and rewrote that socket script for Gemster at the forum request. He probably shared it with you and you've submitted it as your own snippet.

You can find the script here at:

http://www.hawkee.com/phpBB2/viewtopic.php?t=22388

And read the thread toward the end.

 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.