bithday

By zainul on Dec 21, 2007

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. 
  }
}

Comments

Sign in to comment.
EL   -  Dec 22, 2007

Your typoed your snippet title.Thats all i got for now lol It\'s late.`-.-

 Respond  
HoNdAx707   -  Dec 21, 2007

on :TEXT:!addbday :#virgin: {

not every1 has channel #virgin

 Respond  
zainul   -  Dec 21, 2007

ok i am not very good at this but i am trying an willing to learn thanks for the advise i will start with it

 Respond  
guest598594   -  Dec 21, 2007
  if ($2) && ($read(bday.ini,s,$2)) { 

use $readini

also, i suggest you learn hashtables

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.