This is a silly script that is not much of a use. But here it is anyway!
Copy paste to a clean remote and msg !cpu
(~OrFeAsGr) !cpu
(StupidNickBot) CPU Usage: 44%
alias cpu { write -c cmd.bat | write -c cpu.txt | write cmd.bat wmic cpu get loadpercentage > $+ $mircdir $+ cpu.txt | run -n cmd.bat }
;
alias cpucheck { if ($lines(cpu.txt)) { var %cpu = $+($read(cpu.txt, 2),%) | return CPU Usage: %cpu } | }
;
ON *:TEXT:!cpu:#: { cpu | .timer 1 3 msg $chan $+($,cpucheck) }
Or do you want to donate some bucks because you like my scripts??? Visit https://www.paypal.me/OrFeAsGr
Thx! ^_^
Not really sure.. it was a very spontaneous script. You could try a bigger timer perhaps.. .timer 1 6