Advertisement
OrFeAsGr

PreDB.org mIRC Announcer

Feb 20th, 2017
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.43 KB | None | 0 0
  1. ;;;; OrFeAsGr - http://humanity.ucoz.com - http://orpheusgr.tk ;;;;
  2. on *:TEXT:*:#:{
  3.   if (!predb == $1) {
  4.     if ($timer(predb).secs) {
  5.       .timerpredb off
  6.       .msg #warezhouse Pre Announce Stopped.
  7.     }
  8.     elseif (!$timer(predb).secs) {
  9.       .timer 1 3 sockopen -e predb predb.org 443
  10.       .timerpredb 0 60 sockopen -e predb predb.org 443
  11.       .msg #warezhouse Pre Announce Started.
  12.     }
  13.   }
  14. }
  15.  
  16. on *:SOCKOPEN:predb: {
  17.   sockwrite -nt $sockname GET / HTTP/1.1
  18.   sockwrite -nt $sockname Host: predb.org
  19.   sockwrite $sockname $crlf
  20. }
  21.  
  22. on *:SOCKREAD:predb: {
  23.   var %predb
  24.   sockread %predb
  25.   ;echo -at %predb
  26.   if (*tr class="post" id=* iswm %predb) {
  27.     var %id = $gettok(%predb,4,34)
  28.     if (!%lastid) || (%lastid != %id) { set %lastid %id }
  29.     elseif (%lastid == %id) { sockclose $sockname }
  30.   }
  31.   if (*td class="pretime"* iswm %predb) { set %pretime $gettok($gettok(%predb,2,62),1,60) }
  32.   if (*td class="cat"* iswm %predb) { set %precatl $+(www.predb.org,$gettok(%predb,4,34)) | set %precat $gettok(%predb,6,34) }
  33.   if (*td class="grp"* iswm %predb) { set %pregrpl $+(www.predb.org,$gettok(%predb,4,34)) | set %pregrp $gettok(%predb,6,34) }
  34.   if (*td class="rls"* iswm %predb) {
  35.     set %prerls $gettok(%predb,6,34)
  36.     sockclose $sockname
  37.     msg #warezhouse %pretime Ago. Category: %precatl %precat Group: %pregrpl %pregrp Title: %prerls
  38.   }
  39. }
  40. ;;;; OrFeAsGr - http://humanity.ucoz.com - http://orpheusgr.tk ;;;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement