guest598594 commented on a Page, Simple 8ball Snippet  -  Sep 19, 2007

why does everyone do if (%8ball == number) its such a waste of code...

on *:text:!8ball*:#:{
  var %8ball = No|Yes|Maybe|Try Later|Etc...
  msg $chan $gettok(%8ball,$r(1,$numtok(%8ball,124)),124)
}

i find a variable a lot easier than writing/readin a txt

x1gu10n3r: use $read(file.txt) to read a random line

just use $read(file.txt) to read random line

 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.