Uptime module added.
This commit is contained in:
parent
5fbfa1a8e2
commit
7e1768b6e3
5
modules/uptime/uptime.sh
Executable file
5
modules/uptime/uptime.sh
Executable file
@ -0,0 +1,5 @@
|
||||
[ -f functions.sh ] && source functions.sh
|
||||
|
||||
pid=$(pgrep bot.sh | head -1)
|
||||
uptime="$(ps -p $pid -o etime | tail -1)"
|
||||
msg "$2" "$1: I have been up for ${uptime}."
|
Loading…
Reference in New Issue
Block a user