Calculates the percentage of free space you have on your C: drive, and displays it in a text-based meter to the active channel. If you're not in a channel, it'll echo it. Type /spacemeter
alias spacemeter {
var %' = $calc($bytes($disk(c:).free) / $bytes($disk(c:).size)), %i = $calc(%' * 100), %o = $+($round(%i,2),$chr(37))
var %bars = $round($calc(%' * 10),0), %notbars = $calc(10 - %bars), %m = c: space meter $+($chr(91),$chr(2),$chr(3),4,$str(>,%bars),$chr(15),$chr(3),14,$iif(%notbars != 0,$str(>,%notbars),$chr(15)),$chr(15),$chr(93)) %o free
if ($active ischan) say %m
else echo -a %m
}