rendered paste bodyon *: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.
}
}