Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. bind PUB $userflag $up main_func
  2.  
  3. proc main_func {nick uhost hand chan arg} {show_uptime $nick $uhost $hand $chan $arg}
  4.  
  5. proc show_uptime {nick uhost hand chan arg} {
  6. catch {exec uptime} shelluptime
  7. catch {exec uname -ms} shellver
  8. putnow "PRIVMSG $chan :Bot Uptime: [duration [expr [clock seconds] - $::uptime]]"
  9. putnow "PRIVMSG $chan :Shell Uptime: $shelluptime running on $shellver"
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement