Skip to content

Commit

Permalink
Update Startup-Log.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed Nov 21, 2024
1 parent e8de636 commit 092a6fb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/Core/Startup-Log.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ function Startup {
# Determine run count and message
if ($existingData) {
$runs = $existingData.runs + 1
#Telegram -Message "💻 '$env:USERNAME' has opened ITT again."
Telegram -Message "💻 '$env:USERNAME' has opened ITT again."
} else {
$runs = 1
#Telegram -Message "🎉 A new device 👤 '$env:USERNAME' is now running ITT!"
Telegram -Message "🎉 A new device 👤 '$env:USERNAME' is now running ITT!"
}

# Update Firebase with the new run count
Expand All @@ -200,11 +200,7 @@ function Startup {
Write-Host "`nITT has been used on $totalKeys devices worldwide.`n" -ForegroundColor White

# Determine run count and message
if ($existingData) {
Telegram -Message "💻 '$env:USERNAME' has opened ITT again."
} else {
Telegram -Message "🎉 A new device 👤 '$env:USERNAME' is now running ITT!`n`🌍 Total users worldwide: $totalKeys"
}
Telegram -Message "🌍 Total users worldwide: $totalKeys"

# Force garbage collection to free memory
[System.GC]::Collect()
Expand Down

0 comments on commit 092a6fb

Please sign in to comment.