well wat this does is when u typ !addbday it will add your birthday and u cant add for some else and to see some1`s birthday and how long till the day typ !bday if u have already added and try to add it will tell u , u have already added , and if u dont have a birthday set when u join it will give u a small notice , now i need help with a del command how do i make a del command its not like the writini all u do is remini pls help me with that and is there a way to get it to wish some1 if the day is there birthday and they join thank u
on *:join:#: {
if ($nick == $me) {
halt
}
if ($nick) && ($read(bday.ini,s,$nick)) {
halt
}
notice $nick Type !addbday <name> <day> <month> to set your birthday. Type !bday <name> to see how long it is until your birthday.
}
on *:TEXT:!addbday *:#virgin: {
if ($2) && ($read(bday.ini,s,$2)) {
/msg $chan This name is already on the birthday list.
halt
}
if ($nick !== $2) {
msg $chan sorry u cant add a birthday for some1 else
halt
}
if ($2 != $read(bday.ini,s,$2)) && ($2) {
write bday.ini $2 $3-
/msg $chan Your birthday has been recorded type !bday $2 to see how long you have until your next birthday
halt
}
}
on *:TEXT:!bday *:#: {
if ($2) && ($read(bday.ini,s,$2)) && ( $calc($ctime($read(bday.ini,s,$2) $asctime(yyyy) 00:00:00) - $ctime) > 0 ) {
/msg $chan There are $duration( $calc( $ctime($read(bday.ini,s,$2) $asctime(yyyy) 00:00:00) - $ctime)) left until $read(bday.ini,s,$2) and $2 $+ 's birthday!!!
halt
}
elseif ($2) && ($read(bday.ini,s,$2)) {
/msg $chan $2 `s Birthday is on the $read(bday.ini,s,$2) : And there are $duration($calc($ctime($read(bday.ini,s,$2) $calc($asctime(yyyy)+1) 00:00:00) - $ctime)) left until $2 's birthday
halt
}
if ($2 != $read(bday.ini,s,$2)) {
/msg $chan I'm sorry $nick $+ . This name is not in my list of birthdays.
}
}