Skip to content

Commit 3d28c87

Browse files
committed
Update itt.ps1
1 parent ae276b2 commit 3d28c87

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

itt.ps1

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $itt = [Hashtable]::Synchronized(@{
4444
ProcessRunning = $false
4545
database = @{}
4646
api = $null
47-
version = "26.1.31"
47+
version = "26.2.15"
4848
registryPath = "HKCU:\Software\ITT@emadadel"
4949
Theme = "default"
5050
Date = (Get-Date -Format "MM/dd/yyy")
@@ -870,12 +870,10 @@ ITT-ScriptBlock -ArgumentList $i, $Debug -ScriptBlock {
870870
param($Debug)
871871
function UsageCount {
872872
try {
873-
$Message = "👨‍💻 Version: $($itt.version)`n🚀 URL: $($itt.command)"
874-
$EncodedMessage = [uri]::EscapeDataString($Message)
875-
$Url = "https://itt.emadadel4-a0a.workers.dev/log?text=$EncodedMessage"
873+
$Url = "https://itt.emadadel4-a0a.workers.dev/log"
876874
$response = Invoke-WebRequest -Uri $Url -UseBasicParsing -Method GET
877-
$result = $response.Content
878-
Add-Log -Message "`n $result times worldwide`n"
875+
$count = $response.Content.Trim()
876+
Add-Log -Message "`n $count times worldwide`n"
879877
}
880878
catch {
881879
Start-Sleep 8
@@ -1828,12 +1826,12 @@ $itt.$Name.Text = $NonKey
18281826
}
18291827
function Show-Event {
18301828
$itt['window'].FindName('date').text = '01/01/2026'.Trim()
1831-
$itt['window'].FindName('yt').add_MouseLeftButtonDown({
1832-
Start-Process('https://youtu.be/0kZFi6NT1gI')
1833-
})
18341829
$itt['window'].FindName('win').add_MouseLeftButtonDown({
18351830
Start-Process('https://linkjust.com/massgravelts')
18361831
})
1832+
$itt['window'].FindName('yt').add_MouseLeftButtonDown({
1833+
Start-Process('https://youtu.be/0kZFi6NT1gI')
1834+
})
18371835
$storedDate = [datetime]::ParseExact($itt['window'].FindName('date').Text, 'MM/dd/yyyy', $null)
18381836
$daysElapsed = (Get-Date) - $storedDate
18391837
if ($daysElapsed.Days -lt 1)

0 commit comments

Comments
 (0)