a simple script to countdown how long it is until your birthday.
You simply type !addb to set your birthday and type !b to see how long it is until your birthday.
on *:join:#A_A: { << You can change A_A to any channel you want or get rid of it to include all channels. you can also delete the first 2 lines if you don't want to notice people on how to use the script. enjoy
on *:join:#A_A: {
notice $nick Type !addb <name> <month> <day> to set your birthday. Type !b <name> to see how long it is until your birthday.
}
on *:TEXT:!addb *:#: {
if ($2) && ($read(bday.txt,s,$2)) {
/msg $chan This name is already on the birthday list.
halt
}
if ($2 != $read(bday.txt,s,$2)) && ($2) {
write bday.txt $2,$3-
/msg $chan Your birthday has been recorded under the name $2 $+ . type !b <name> to see how long you have until your birthday
halt
}
}
on *:TEXT:!b *:#: {
if ($2) && ($read(bday.txt,s,$2)) && ( $calc($ctime($read(bday.txt,s,$2) $asctime(yyyy) 00:00:00) - $ctime) > 0 ) {
/msg $chan There are $duration( $calc( $ctime($read(bday.txt,s,$2) $asctime(yyyy) 00:00:00) - $ctime)) left until $read(bday.txt,s,$2) and $2 $+ 's birthday!!!
halt
}
elseif ($2) && ($read(bday.txt,s,$2)) {
/msg $chan There are $duration($calc($ctime($read(bday.txt,s,$2) $calc($asctime(yyyy)+1) 00:00:00) - $ctime)) left until $read(bday.txt,s,$2) or $2 $+ 's birthday
halt
}
if ($2 != $read(bday.txt,s,$2)) {
/msg $chan I'm sorry $nick $+ . This name is not in my list of birthdays.
}
}