From 7f7f7d66a064b6304a0217d7013c5577f33de88f Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sat, 9 Aug 2025 03:19:10 -0600 Subject: [PATCH] waypoint --- Windows-Scripts/force_me_off.ps1 | 42 -------------------------------- 1 file changed, 42 deletions(-) diff --git a/Windows-Scripts/force_me_off.ps1 b/Windows-Scripts/force_me_off.ps1 index d1f58f1..e69de29 100644 --- a/Windows-Scripts/force_me_off.ps1 +++ b/Windows-Scripts/force_me_off.ps1 @@ -1,42 +0,0 @@ -param ( - [Single] - $Hours = 1, - - [Single] - $Minutes = 0, - - [Int16] - $grace_minutes = 2 -) - -# some calcs -$wait_minutes = (($Hours*60)+$Minutes) -$wait_seconds = ($wait_minutes*60) -$grace_seconds = ($grace_minutes*60) -$stop_time = $((Get-Date).AddHours($Hours).AddMinutes(($grace_minutes+$Minutes)).ToString("hh:mm:ss tt")) - -# notify of time -Write-Host "`nFORCING YOUR STUPID ASS OFF IN $Hours hours $Minutes minutes plus $grace_minutes minutes grace period" - -# webhook -Write-Host "Sending webhook notification..." -webhook "FORCING REBOOT AT $stop_time`n" - -# current time -Write-Host "$(Get-Date -Format 'hh:mm:ss tt') | Start Time" - -# shutdown time -Write-Host "$stop_time | Reboot Time" - -Write-Host "`nSleeping for $Hours hours $Minutes minutes and forking to the background to prevent cheating`n" - -Start-Job -ScriptBlock { - # sleep - Start-Sleep -Seconds $wait_seconds - - # do an offline chkdisk to force more time away from computer lmfao - # chkdsk /r C: - - # force reboot using the cmd because powershell is cancer - shutdown /r /t $grace_seconds # Restarts after a delay -} | Out-Null # maek it queitrerr \ No newline at end of file