idletime.cna 553 B

123456789101112131415161718
  1. # author REDMED-X
  2. beacon_command_register(
  3. "idletime", "Check current user activity based on the user's last input",
  4. "INFO:\nCheck current user activity based on the user's last input. Returns the time in format HH:MM:SS.\n\n" .
  5. "USAGE:\nidletime\n\n");
  6. alias idletime {
  7. $bid = $1;
  8. # Read in the right BOF file
  9. $handle = openf(script_resource("idletime.o"));
  10. $data = readb($handle, -1);
  11. closef($handle);
  12. blog($bid, "Tasked to check user activity..");
  13. beacon_inline_execute($bid, $data, "go", $null);
  14. }