You can also do it this way:
on *:TEXT:*:#: {
tokenize 32 $strip($1-)
if ($1 == !8ball) {
msg $chan Original question: $2- And the answer is:
var %x = No!|Yes!|Of course|Have you gone mad?! I think you have|$&
How should I know? Its not like I'm magic|Heck no!|Maybe... yeah|Why should I tell you?|$&
If I say yes will you be quiet?|Yes... that will be 30 dollars|How should I say this? Um... no
msg $chan $gettok(%x,$rand(1,$numtok(%x,124)),124)
}
}