Uptime

By Cage on Jul 31, 2007

!uptime triggers the remote.

on *:TEXT:!uptime:#: {
  var %uptime = $duration($calc($ticks / 1000))
  if ($isid) return %uptime 
  else msg $chan Win $+ $os uptime: %uptime
}

Comments

Sign in to comment.
Noutrious   -  Jul 31, 2007

Anyway, he should remove that now or do something like this.

on *:TEXT:!uptime:#: { .upt $chan }
alias upt {
  var %uptime = $duration($calc($ticks / 1000))
  if (!$1) return %uptime 
  else msg $1 Win $+ $os uptime: %uptime
}

But i still don\'t see any use for this, old $uptime(system,2) is good for me.

 Respond  
xDaeMoN   -  Jul 31, 2007

I think he was testing it in an alias before posting or may have used it as an alias.

 Respond  
Noutrious   -  Jul 31, 2007
  if ($isid) return %uptime 

Im sorry, but how can a text command be an id?

 Respond  
xDaeMoN   -  Jul 31, 2007

Another simple way is using $uptime ;)

 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.