All pastes #610818 Raw Edit

Rafi

public text v1 · immutable
·published 2007-07-09 17:25 UTC
rendered paste body
on *:input:*:{
  if ($1 == !setnumber) { /set %lotto.aaanum $rand(100,999) | //echo -a 4lottery number is12 $(%lotto.aaanum,2) }
} 
on *:text:!lottery *:?: {
  if ($nick isin $read(lotton.txt, w, $nick)) || ($$3 isin $read(lotton.txt, w, $nick)) { /msg $nick sorry but you already submited your guess. try next week. | halt }
  elseif ($$2 isnum 100-999) {
    /set $+(%,lotto.,$nick) $$2 $$3 - $nick
    /write lotton.txt -- $nick --  [ $$2 ]  rsn < $$3 >
    /msg Thanks for your entry! Winners will be choosen on saturday.  
  }
}