Uptime module added.

This commit is contained in:
Storm Dragon 2020-08-12 21:23:50 -04:00
parent 5fbfa1a8e2
commit 7e1768b6e3
1 changed files with 5 additions and 0 deletions

5
modules/uptime/uptime.sh Executable file
View 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}."