slacker commented on a Page, !8ball  -  Mar 13, 2009

you are better off doing it this way

on *:TEXT:!8ball*: {
  if (!$($+(%,8ballflood),2)) {
    set -u3 $+(%,8ballflood) on
    var %8ball = It seems so.|I doubt it.|I dont't care.|Who the hell are you?|Ask me again in 1000 years.|Absolutely not!|I'm 100% sure that its true.
    msg $chan 12The magical Eight-Ball says,"5 $gettok(%8ball,$r(1,7),124) 12"
  }
}

or this way (this one was made by napa182 and is triggered in a form of a question. like "8ball will i get home tonight?")

on *:text:*:#:{
  if ($regex($1-,/^(8ball\s(.*)\?)$/S) && !$($+(%,ball8flood),2)) { 
    set -u3 $+(%,ball8flood) $nick 
    var %^ = Ask again later.|Not a chance.|As I see it, yes.|Don't count on it.|My sources say no.|Yes.
    describe # shakes up the 8ball...
    .timer8ball 1 2 msg # The magic 8ball says: $gettok(%^,$r(1,6),124)
  }
}
 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.