Uptime module added.
This commit is contained in:
		
							
								
								
									
										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}." | ||||
		Reference in New Issue
	
	Block a user