Down for everyone or just me

By Paradox-Paradigm on Mar 20, 2013

Down Script For A Bot

on $*:TEXT:/^[~`!@^&.]down \S+?\.\S+$/i:*: {
  sockclose Down
  set %Down# $iif($chan,$chan,$nick)
  set %DownURL / $+ $2
  sockopen Down www.downforeveryoneorjustme.com 80
}

on *:SOCKOPEN:Down: {
  sockwrite -n Down GET %DownURL HTTP/1.1
  sockwrite -n Down Host: www.downforeveryoneorjustme.com
  sockwrite Down $crlf
}

on *:SOCKREAD:Down: {
  sockread %Down
  while ($sockbr) {
    if (class="domain" isin %Down) {
      msg %Down# $regsubex(%Down,/(<.+?>)+/g,)
      unset %Down*
      sockclose Down
      return
    }
    sockread %Down
  }
}

Comments

Sign in to comment.
Shamp00   -  Mar 30, 2013

Trigger to activate this script please! Thanks. :D

leboong  -  Jul 17, 2013

!down (space) (link)

Sign in to comment

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.