simple !time command :)

By CharltonJ on Jan 16, 2008

its a simple time command just type !time Nickname :P if you find any bug plz let me know :P

on *:ctcpreply:*time*:{ 
  .msg #  $+ %timenick $+ 's time and date: ( $+ $2- $+ ) | unseT %timenick
}
on *:TEXT:!time*:#:{ 
  if ($2 == $null) { notice $Nick choose a nickname please. | halt }
  if ($2 !ison $chan) { notice $Nick Sorry, but $2 $+  is not on $chan $+ . | halt }
  else {
    if ($2 ison $chan) {
      set %Timenick $2 
      .ctcp $2 time
    }
  }
}

Comments

Sign in to comment.
Claus999   -  Mar 07, 2009

yep i love this! :)

i just wished there were a command for viewing how much time is left before the alarm goes off like if i do !Alarm 10 and 4 minutes later im wondering how much time is left i could do like !Alarmtime or womething like tht and it would tell me that there is 6 minutes left..

 Respond  
uneek   -  Mar 17, 2008

Works great, was looking for something like this for a while.

Great work!

 Respond  
guest598594   -  Feb 19, 2008

solution:

on *:ctcpreply:*time*:{ 
  .msg %chan  $+ %timenick $+ \'s time and date: ( $+ $2- $+ ) | unseT %timenick
}
on *:TEXT:!time*:#:{ 
  if ($2 == $null) { notice $Nick choose a nickname please. | halt }
  if ($2 !ison $chan) { notice $Nick Sorry, but $2 $+  is not on $chan $+ . | halt }
  else {
    if ($2 ison $chan) {
      set %Timenick $2 
      set -u10 %chan $v2
      .ctcp $2 time
    }
  }
}
 Respond  
Viper01   -  Feb 19, 2008

it doesnt message the active channel $2\'s time

besides that its the only bug ive found

 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.