bind pub - !count count:proc proc count:proc {nick uhost hand chan arg} { set fd [open /home/bram225/eggdrop1.6.18/Passb0t/$nick.db r] set data [read $fd] close $fd regexp -- {count=(\d+)} $data {} count puthelp "PRIVMSG $chan :$count" }