All pastes #831118 Raw Edit

Mine

public text v1 · immutable
#831118 ·published 2007-12-24 16:00 UTC
rendered paste body
alias nxtq {
  inc %i
  set %base $read(q.txt)
  set %q $token(%base,1,38)
  set %ans $token(%base,2,38)
  msg #zzz $+($c1(%i),$c2(..),%q)
  timerQues 1 10 msg # You failed to find the answer in time, it was %ans $+ ! 
  timerQuesi 1 10 nxtq
}

alias halttriv {
msg # $me has stopped the trivia.
  timerques* off 
}

on $*:text:/^[!@](answer)/Si:#:{
  if ($2- = %ans) { msg # Well done $+($nick,!) You got it correct, the answer was $+(%ans,!) | timerQues* off | nxtq }
  else { msg # Sorry $nick Thats an incorrect answer! }
}