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 092a6fb commit b349c19
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions itt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $itt = [Hashtable]::Synchronized(@{
database = @{}
ProcessRunning = $false
developer = "Emad Adel"
lastupdate = "11/21/2024"
lastupdate = "11/22/2024"
github = "https://github.com/emadadel4/itt"
telegram = "https://t.me/emadadel4"
blog = "https://emadadel4.github.io"
Expand Down Expand Up @@ -7240,10 +7240,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 @@ -7258,11 +7258,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 Expand Up @@ -12854,23 +12850,23 @@ function Show-Event {



$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')
})


$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')
})


Expand Down

0 comments on commit b349c19

Please sign in to comment.