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 2bc430c commit 2ac304d
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions itt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7235,6 +7235,7 @@ function Startup {
$win = [System.Environment]::OSVersion




# Display information

Expand All @@ -7245,10 +7246,12 @@ function Startup {
$runs = if ($existingData) {

$existingData.runs + 1
Telegram -Message "💻 '$env:USERNAME' has opened ITT again."
}
else
{
1
Telegram -Message "🎉A new device 👤'$env:USERNAME is now running ITT!`n`💻 $Win`n`🌍 Total users worldwide: $totalKeys"
}

# Update Firebase with the new value
Expand All @@ -7259,10 +7262,14 @@ function Startup {
$response = Invoke-RestMethod -Uri $firebaseUrlRoot -Method Get -ErrorAction SilentlyContinue
$totalKeys = ($response | Get-Member -MemberType NoteProperty | Measure-Object).Count

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

if ($firebaseUrlWithKey) {

Write-Host "OLD USER"
}
else
{
Write-Host "NEW"
}

Write-Host "`nITT has been used on $totalKeys devices worldwide.`n" -ForegroundColor White
Expand Down Expand Up @@ -12856,23 +12863,23 @@ function Show-Event {



$itt.event.FindName('contribute').add_MouseLeftButtonDown({
Start-Process('https://github.com/emadadel4/itt?tab=readme-ov-file#-how-to-contribute')
$itt.event.FindName('ytv').add_MouseLeftButtonDown({
Start-Process('https://www.youtube.com/watch?v=QmO82OTsU5c')
})


$itt.event.FindName('ps').add_MouseLeftButtonDown({
Start-Process('https://www.palestinercs.org/en/Donation')
$itt.event.FindName('shell').add_MouseLeftButtonDown({
Start-Process('https://github.com/emadadel4/shelltube')
})


$itt.event.FindName('ytv').add_MouseLeftButtonDown({
Start-Process('https://www.youtube.com/watch?v=QmO82OTsU5c')
$itt.event.FindName('contribute').add_MouseLeftButtonDown({
Start-Process('https://github.com/emadadel4/itt?tab=readme-ov-file#-how-to-contribute')
})


$itt.event.FindName('shell').add_MouseLeftButtonDown({
Start-Process('https://github.com/emadadel4/shelltube')
$itt.event.FindName('ps').add_MouseLeftButtonDown({
Start-Process('https://www.palestinercs.org/en/Donation')
})


Expand Down

0 comments on commit 2ac304d

Please sign in to comment.