mainscript.ps1 hotfix

FIX: "kills not showing up in the bot, but tracking in the tracker"
This commit is contained in:
scubamount 2025-01-17 14:13:38 -08:00 committed by GitHub
parent 693904e53c
commit e53fdc3c5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ if (Test-Path "$scriptFolder\Kill-Log.csv") {
$currentDate = Get-Date
$dateFormat = "dd MMM yyyy HH:mm UTC"
foreach ($kill in $historicKills) {
$killDate = [datetime]::ParseExact($kill.KillTime, $dateFormat, [System.Globalization.CultureInfo]::InvariantCulture)
$killDate = [datetime]::ParseExact($kill.KillTime.Trim(), $dateFormat, [System.Globalization.CultureInfo]::InvariantCulture)
If ($killdate.year -eq $currentDate.Year -and $killdate.month -eq $currentDate.Month) {
$global:killTally++
}
@ -517,4 +517,4 @@ finally {
$reader.Close()
$fileStream.Close()
}
#>
#>