       res.robot.logger.error e
       res.send 'hubot-datadog-graph: error'
 
+  # config
+  pattern3 = new RegExp(basePattern + 'config$')
+  robot.respond pattern3, (res) ->
+    queries = (robot.brain.data?.queries ? {})
+    res.send ("#{k} #{v}" for k, v of queries).join '\n'
+
   # config add
   pattern2 = new RegExp(basePattern + 'config\\s+add\\s+([-\\w]+)\\s+(.+)$')
   robot.respond pattern2, (res) ->

#
# Commands:
#   hubot datadog graph <graph> <range> - take a graph snapshot using the Datadog API
#   hubot datadog graph config add <graph> <query>
#   hubot datadog graph config list
#   hubot datadog graph config remove <graph>
#
# Author:
#   bouzuya <m@bouzuya.net>

    robot.brain.data.queries[graph] = query
    res.send 'OK'

  # config remove
  pattern4 = new RegExp(basePattern + 'config\\s+remove\\s+([-\\w]+)')
  robot.respond pattern4, (res) ->
