Jump to content

Archived

This topic is now archived and is closed to further replies.

chain

giveaway snippet

Recommended Posts

  • Administrators

Heres a great snippet done by err0r for giveawayof theday. what it dose is gives you the time remainng of the give away of the day software and tells you the software and the link for the software. The only thing needed to change is your room name!!

 

 

>1.alias giveaway {2.  sockclose give | sockopen give www.giveawayoftheday.com 803.}4.on *:sockopen:give: {5.  if ($sockerr) { echo -s $sockname error | sockclose give }6.  else {7.	sockwrite -n $sockname GET / HTTP/1.18.	sockwrite -n $sockname Host: giveawayoftheday.com9.	sockwrite -n $sockname $crlf10.  }11.}12.on *:sockread:give: {13.  var %give.temp14.  sockread %give.temp15.  if ($regex(%give.temp,/<title>(.*)</title>/)) { set %giveaway.title $regml(1) }16.  if ($regex(%give.temp,/<a href="http://www.giveawayoftheday.com/(.*?)/">/)) { set %giveaway.link $regml(1) }17.  if ($regex(%give.temp,/(.*)<!--/mfunc-->(.*)</p>/)) { set %giveaway.time $regml(1) | msg $+($chr(37),$chr(35),IRCommunity,IRChainScriptz,Hawkee) Free Giveaway of the Day: $htmlfree($remove(%giveaway.title,Giveaway of the Day - free licensed software daily.)) | msg $+($chr(37),$chr(35),IRCommunity,IRChainScriptz,Hawkee) [url="http://www.giveawayoftheday.com/"]http://www.giveawayoftheday.com/[/url] $+ %giveaway.link $+ / | msg $+($chr(37),$chr(35),IRCommunity,IRChainScriptz,Hawkee) Time remaining : %giveaway.time | sockclose $sockname  }18.}19.alias -l htmlfree {20.  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, n°,"’)21.  return %x22.}

Link to comment
Share on other sites



×
×
  • Create New...