- if count > 1000
- puts " - gave up searching"
- m.reply "Looks like I ain't finding a quote with a rating higher than #{min} any time today."
- return
- end
+ # Just a little helper for the initialize method...
+ def find_facts_file(name)
+ full_path = File.join Config::datadir, "plugins", name
+ found_files = Dir[full_path]
+ if found_files.empty?
+ nil
+ else
+ found_files[0]
+ end
+ end
+
+ # HELP!
+ def help(plugin, topic="chuck")
+ "chuck|norris|chucknorris [min_rating] => show a random Chuck Norris fact (optional minimum rating from 1-10, default=6.0)."
+ #\"fact [person]\" shows a fact about someone in the channel.
+ end