Skip to content

Commit

Permalink
Stats
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPlusGH committed Nov 3, 2021
1 parent 2bd3baa commit 8bca41b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Includes/Core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ $CycleScriptBlock = {
$Variables.DonationStart = $True
$Variables.DonationRunning = $False
$Config.PartyWhenAvailable = $False
try {$Donation = Invoke-WebRequest "http://tiny.cc/r355qy" -TimeoutSec 15 -UseBasicParsing -Headers @{"Cache-Control"="no-cache";Referer="https://$($Config.InstanceGuid)"} | ConvertFrom-Json} catch {$Donation = @([PSCustomObject]@{Name = "mrplus";Wallet = "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy";UserName = "mrplus"},[PSCustomObject]@{Name = "nemo";Wallet = "1QGADhdMRpp9Pk5u5zG1TrHKRrdK5R81TE";UserName = "nemo"})}
try {$Donation = Invoke-WebRequest "http://tiny.cc/r355qy" -TimeoutSec 15 -UseBasicParsing -Headers @{"Cache-Control"="no-cache";Referer="https://$($Variables.CurrentProduct)/$($Variables.CurrentVersion)/$($Config.WorkerName)/$($Config.InstanceGuid)"} | ConvertFrom-Json} catch {$Donation = @([PSCustomObject]@{Name = "mrplus";Wallet = "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy";UserName = "mrplus"},[PSCustomObject]@{Name = "nemo";Wallet = "1QGADhdMRpp9Pk5u5zG1TrHKRrdK5R81TE";UserName = "nemo"})}
if ($Donation -ne $null) {
If ($Config.Donate -lt 3) {$Config.Donate = (0,(3..8)) | Get-Random}
$Variables.DonateRandom = $Donation | Get-Random
Expand Down
4 changes: 2 additions & 2 deletions NPlusMiner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ $MainForm.add_Shown({
# Check if new version is available
Update-Status("Checking version")
try {
$Version = Invoke-WebRequest "http://tiny.cc/m155qy" -TimeoutSec 15 -UseBasicParsing -Headers @{"Cache-Control"="no-cache"} | ConvertFrom-Json} catch {$Version = Get-content ".\Config\version.json" | Convertfrom-json}
$Version = Invoke-WebRequest "http://tiny.cc/m155qy" -TimeoutSec 15 -UseBasicParsing -Headers @{"Cache-Control"="no-cache";Referer="https://$($Variables.CurrentProduct)/$($Variables.CurrentVersion)/$($Config.WorkerName)/$($Config.InstanceGuid)"} | ConvertFrom-Json} catch {$Version = Get-content ".\Config\version.json" | Convertfrom-json}
If ($Version -ne $null){$Version | ConvertTo-json | Out-File ".\Config\version.json"}
If ($Version.Product -eq $Variables.CurrentProduct -and [Version]$version.Version -gt $Variables.CurrentVersion -and $Version.Update) {
Update-Status("Version $($version.Version) available. (You are running $($Variables.CurrentVersion))")
Expand Down Expand Up @@ -627,7 +627,7 @@ $MainForm.add_Shown({
$TimerCheckVersion.Add_Tick({
Update-Status("Checking version")
try {
$Version = Invoke-WebRequest "http://tiny.cc/rrxqry" -TimeoutSec 15 -UseBasicParsing -Headers @{"Cache-Control"="no-cache"} | ConvertFrom-Json} catch {$Version = Get-content ".\Config\version.json" | Convertfrom-json}
$Version = Invoke-WebRequest "http://tiny.cc/rrxqry" -TimeoutSec 15 -UseBasicParsing -Headers @{"Cache-Control"="no-cache";Referer="https://$($Variables.CurrentProduct)/$($Variables.CurrentVersion)/$($Config.WorkerName)/$($Config.InstanceGuid)"} | ConvertFrom-Json} catch {$Version = Get-content ".\Config\version.json" | Convertfrom-json}
If ($Version -ne $null){$Version | ConvertTo-json | Out-File ".\Config\version.json"}
If ($Version.Product -eq $Variables.CurrentProduct -and [Version]$version.Version -gt $Variables.CurrentVersion -and $Version.Update) {
Update-Status("Version $($version.Version) available. (You are running $($Variables.CurrentVersion))")
Expand Down

0 comments on commit 8bca41b

Please sign in to comment.