Difference between revisions of "$idle"

From Scriptwiki
Jump to: navigation, search
m (added reference to other people's idletime)
m
 
Line 15: Line 15:
  
 
== See Also ==
 
== See Also ==
If you're looking for other peoples idletime in channels see [[$nick_(nick)|$nick]].
+
* [[$nick_(nick)|$nick]] to see other peoples idletime.
  
 
[[Category:Time and Date Identifiers]]
 
[[Category:Time and Date Identifiers]]

Latest revision as of 10:23, 2 July 2007

Returns your current idle time.

$idle

Note that you cannot echo it yourself; it will be 0 then (as you have just done something).

Example

; you can use it in an on text event
On *:Text:$(* $+ $me $+ *):*: {
 ; lets check if our idle time is greater than 3600 seconds
 if ($idle > 3600) {
   ; we well notice the one who has said our name. Note that /notice doesnt reset our idle time.
   notice $nick I idle for more than one hour, so I'm probably afk.
  }
}

See Also

  • $nick to see other peoples idletime.