       msg.send factoids.handleFactoid msg.message.text
     else
       msg.reply factoids.handleFactoid msg.message.text 
+
+  robot.hear /(.+)\?/i, (msg) ->
+    factoid = factoids.get msg.match[1]
+    if factoid
+      msg.reply msg.match[1] + " is " + factoid

# ~<factoid> - Prints the factoid, if it exists. Otherwise tells you there is no factoid.
# ~tell <user> about <factoid> - Tells the user about a factoid, if it exists.
# ~~<user> <factoid> - Same as ~tell, less typing.

class Factoids
  constructor: (@robot) ->

    else if match = (/^~tell (.+) about (.+)/i.exec text) or (/^~~(.+) (.+)/.exec text)
      this.tell match[1], match[2]
    else if match = /^~(.+)/i.exec text
      this.niceGet match[1]

module.exports = (robot) ->
  factoids = new Factoids robot
