discord locks fix

This commit is contained in:
Thijs Stobbelaar 2023-11-13 10:29:36 +01:00
parent 98232ed7ef
commit 94eeb39e50
2 changed files with 4 additions and 9 deletions

View file

@ -1,14 +1,11 @@
. .\..\includes\ps1\lockfile.ps1
new-lock
if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location
}
else {
$scriptroot = $PSScriptRoot
}
. $scriptroot\..\includes\ps1\lockfile.ps1
new-lock
function IsValidEntry($entry) {
return ($entry.KD_H -ne 'NaN' -and $entry.KD_ALL -ne 'NaN') -and
($entry.KD_H -ne 'Infinity' -and $entry.KD_ALL -ne 'Infinity')