Skip to content

Commit

Permalink
Update itt.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed Nov 21, 2024
1 parent f1c1fda commit e3fed05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions itt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7239,15 +7239,15 @@ function Startup {

# Determine run count and message
if ($existingData) {
$runs = $existingData.runs + 1
$Runs = $existingData.Runs + 1
Telegram -Message "💻 '$env:USERNAME' has opened ITT again."
} else {
$runs = 1
$Runs = 1
Telegram -Message "🎉 A new device 👤 '$env:USERNAME' is now running ITT!"
}

# Update Firebase with the new run count
$updateData = @{ runs = $runs } | ConvertTo-Json -Depth 10
$updateData = @{ Runs = $Runs } | ConvertTo-Json -Depth 10
Invoke-RestMethod -Uri $firebaseUrlWithKey -Method Put -Body $updateData -Headers @{ "Content-Type" = "application/json" } -ErrorAction SilentlyContinue

# Count the number of keys under the root AFTER the update
Expand Down

0 comments on commit e3fed05

Please sign in to comment.