# File contrib/plugins/stats.rb, line 31def initialize
super
@listen = true
@channels = Hash.new
#check to see if a stats token file already exists for this channel...
Dir["#{@bot.botclass}/stats/*"].each { |fname|
channel = File.basename fname
tokens = Hash.new
IO.foreach(fname) { |line|
if line =~ /^(\S+)\s*<=>(.*)/
tokens[$1] = parse_token_stats $2
end
}
@channels[channel] = tokens
}
end