Facts v1.0

By Gecko321 on Jun 15, 2012

Posts a random fact

#Looks up random facts
bind pub - !fact fact
proc fact {nick host hand chan arg} {

  package require http
  set url "http://www.randomfunfacts.com/"
  set page [http::data [http::geturl $url]]
  regexp {<i>(.*?)<\/i>} $page a fact
  putserv "PRIVMSG $chan :Random Fact: $fact"
}

putlog "Random Fact v1.0"

Comments

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.