This can be condensed down to one line if you use a text file to store all the facts.
on *:text:!useless facts:#: { msg $chan $read(uselessfacts.text) }
This would eliminate setting a var on each command. :p Also, shorten the code significantly.