All pastes #763850 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-06 20:12 UTC
rendered paste body

on trivia:text:!seturl*:?:{

  if ($2 == $null) { msg $nick Current Url: %triviaurl }

  else { set %triviaurl $2- | msg $nick Current Url: %triviaurl }

}

on trivia:text:!setanswer*:?:{

  if ($2 == $null) { msg $nick Current Answer: %triviaanswer }

  else { set %triviaanswer $2- | msg $nick Current Answer: %triviaanswer }

}

on trivia:text:!sayurl*:*:{ set %trivia on | set %triviachan $chan | msg %triviachan Url: %triviaurl }

on trivia:text:!reset*:?:{

  triviareset

  msg $nick RESET

}

alias triviareset {

  set %triviaurl NONE

  set %triviaanswer NONE

  set %trivia off



}

on *:text:!answer*:?:{

  if (%trivia == on) {

    if ( $2- == %triviaanswer ) {

      msg $nick Well done, you got it right

      notice %triviachan Congratz to $nick $+ , they answered correctly with $2-

      trivareset

    }

    else { msg $nick Sorry, Try again. (remember answers need to be character perfic') }

  }