All pastes #810590 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-10 02:27 UTC
rendered paste body
alias container { 
  var %rushcontainer = $dll(rushmirc.dll,Invoke,RushApp.Containers.ContainerCount) 
  var %rushconn = $dll(rushmirc.dll,Invoke,RushApp.Containers.ConnectedSiteCount) 
  var %rushtran = $dll(rushmirc.dll,Invoke,RushApp.Containers.TransferSiteCount) 
  msg $active 4(0Containers4) 4•14 %rushcontainer 4• 0Connected 4•14 %rushconn 4• 0Transfering 4•14 %rushtran  
} 
alias sizeprocess { var %ord = $1 | if ((%ord !isnum) || (%ord == $null)) { return $null } | var %dh = $round($calc(%ord / 1024),2) | if (%dh < 1) { return %ord MB } | elseif (%dh < 1023) { return %dh GB } | else { var %po = $round($calc(%dh / 1024),2) | return %po TB } } 
menu channel,query { 
  Rush-Stats 
  .All:{ 
    var %ftpdown = $dll(rushmirc.dll,Invoke,RushApp.TotalDownloadSize) 
    var %ftpup = $dll(rushmirc.dll,Invoke,RushApp.TotalUploadSize) 
    var %ftpfxp = $dll(rushmirc.dll,Invoke,RushApp.TotalFXPSize) 
    var %ftpdownc = $dll(rushmirc.dll,Invoke,RushApp.CurDownloadSize) 
    var %ftpupc = $dll(rushmirc.dll,Invoke,RushApp.CurUploadSize) 
    var %ftpfxpc = $dll(rushmirc.dll,Invoke,RushApp.CurFXPSize) 
    var %ftpstart = $dll(rushmirc.dll,Invoke,RushApp.StartDate) 
    var %ftpday = $dll(rushmirc.dll,Invoke,RushApp.DayCount) 
    var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
    if (!%rushver) { msg $active 4(0FTPRush4) 4• 0The client is not currently working. | halt } 
    elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4•0 Incompatible Version. | halt } 
    elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4• 0The client is not ready. | halt } 
    var %rushpool = $dll(rushmirc.dll,Invoke,RushApp.PoolInfo) 
    var %rushcontainer = $dll(rushmirc.dll,Invoke,RushApp.Containers.ContainerCount) 
    var %rushconn = $dll(rushmirc.dll,Invoke,RushApp.Containers.ConnectedSiteCount) 
    var %rushtran = $dll(rushmirc.dll,Invoke,RushApp.Containers.TransferSiteCount) 
    var %rushbwu = $dll(rushmirc.dll,Invoke,RushApp.UploadBW) 
    var %rushbwd = $dll(rushmirc.dll,Invoke,RushApp.DownloadBW) 
    var %ftpstart = $gettok(%ftpstart,1,32) 
    dec %ftpday 
    msg $active 4(0Version4) 4• 14 $+ %rushver  
    msg $active 4(0Status4) 4• 14 $+ %rushpool  
    msg $active 4(0Containers4) 4• 14 $+ %rushcontainer 4•00 Connected 4•14 %rushconn 4•00 Transfering 4•14 %rushtran  
    msg $active 4(0Session4) 4• 00Since14 %ftpstart $+ ,14 %ftpday 00day(s), I downloaded14 $sizeprocess(%ftpdown) $+ 00, uploaded14 $sizeprocess(%ftpup) $+ 00, FXPex14 $sizeprocess(%ftpfxp)  
    msg $active 4(0Today Stats4) 4• 00Downloaded 4•14 $sizeprocess(%ftpdownc) 4• 0Uploaded 4•14 $sizeprocess(%ftpupc) 4•0 FXPed 4•14 $sizeprocess(%ftpfxpc) 
  } 
  .Version:{ 
    var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
    if (!%rushver) { msg $active 4(0FTPRush4) 4• 0The client is not currently working. | halt } 
    elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4• 0 Incompatible Version. | halt } 
    elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4• 0The client is not ready. | halt } 
    var %ftpdown = $dll(rushmirc.dll,Invoke,RushApp.TotalDownloadSize) 
    msg $active 4(0Version4) 4•14 %rushver  
  } 
  .Status:{ 
    var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
    if (!%rushver) { msg $active 4(0FTPRush4) 4• 0The client is not currently working. | halt } 
    elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4• 0 Incompatible Version. | halt } 
    elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4• 0The client is not ready. | halt } 
    var %rushpool = $dll(rushmirc.dll,Invoke,RushApp.PoolInfo) 
    msg $active 4(0Status4) 4•14 %rushpool  
  } 
  .Containers: { 
    var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
    if (!%rushver) { msg $active 4(0FTPRush4) 4• 0The client is not currently working. | halt } 
    elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4• 0 Incompatible Version. | halt } 
    elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4• 0The client is not ready. | halt } 
    var %rushcontainer = $dll(rushmirc.dll,Invoke,RushApp.Containers.ContainerCount) 
    var %rushconn = $dll(rushmirc.dll,Invoke,RushApp.Containers.ConnectedSiteCount) 
    var %rushtran = $dll(rushmirc.dll,Invoke,RushApp.Containers.TransferSiteCount) 
    msg $active 4(0Containers4) 4•14 %rushcontainer 4• 0Connected 4•14 %rushconn 4• 0Transfering 4•14 %rushtran  
  } 
  .Bandwith:{ 
    var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
    if (!%rushver) { msg $active 4(0FTPRush4) 4• 0The client is not currently working. | halt } 
    elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4• 0 Incompatible Version. | halt } 
    elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4• 0The client is not ready. | halt } 
    var %rushbwu = $dll(rushmirc.dll,Invoke,RushApp.UploadBW) 
    var %rushbwd = $dll(rushmirc.dll,Invoke,RushApp.DownloadBW) 
    msg $active 4(0FTpRush Bandwith4) 4• 0Bw-Up 4•14 %rushbwu kbps 4• 0Bw-Dn 4•14 %rushbwd kbps 
  } 
  .Stats:{ 
    var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
    if (!%rushver) { msg $active 4(0FTPRush4) 4• 0The client is not currently working. | halt } 
    elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4• 0 Incompatible Version. | halt } 
    elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4• 0The client is not ready. | halt } 
    var %ftpupc = $dll(rushmirc.dll,Invoke,RushApp.CurUploadSize) 
    var %ftpfxpc = $dll(rushmirc.dll,Invoke,RushApp.CurFXPSize) 
    var %ftpdown = $dll(rushmirc.dll,Invoke,RushApp.TotalDownloadSize) 
    var %ftpup = $dll(rushmirc.dll,Invoke,RushApp.TotalUploadSize) 
    var %ftpfxp = $dll(rushmirc.dll,Invoke,RushApp.TotalFXPSize) 
    var %ftpstart = $dll(rushmirc.dll,Invoke,RushApp.StartDate) 
    var %ftpday = $dll(rushmirc.dll,Invoke,RushApp.DayCount) 
    var %ftpdownc = $dll(rushmirc.dll,Invoke,RushApp.CurDownloadSize) 
    msg $active 4(0RushStats4) 4• 0Since 14 %ftpstart $+ , %ftpday day(s), 4•0 I downloaded 14 $sizeprocess(%ftpdown) $+ , 4• 0uploaded 14 $sizeprocess(%ftpup) $+ , 4• 0FXPex 14 $sizeprocess(%ftpfxp) 
    msg $active 4(0Today4) 4• 0Downloaded 4•14 $sizeprocess(%ftpdownc) 4• 0Uploaded 4•14 $sizeprocess(%ftpupc) 4•0 FXPed 4•14 $sizeprocess(%ftpfxpc) 
  } 
}