 #   A Hubot script for meowziq
 #
 # Configuration:
+#   HUBOT_MEOWZIQ_MEOWBOT
+#   HUBOT_MEOWZIQ_ROOM
 #   HUBOT_MEOWZIQ_URL
-#   HUBOT_MEOWZIQ_ROOM
 #
 # Commands:
-#   hubot meowziq play - play meowziq
-#   hubot meowziq skip - skip meowziq
-#   hubot meowziq status - show meowziq status
-#   hubot meowziq stop - stop meowziq
+#   hubot [meowziq] play - play meowziq
+#   hubot [meowziq] skip - skip meowziq
+#   hubot [meowziq] status - show meowziq status
+#   hubot [meowziq] stop - stop meowziq
 #
 # Author:
 #   bouzuya <m@bouzuya.net>

request = require 'request-b'

config = parseConfig 'meowziq',
  url: null
  room: null
  interval: '5000'

      result = if r.statusCode is 200 then 'OK' else 'ERROR'
      res.send result

  pattern = new RegExp (if config.meowbot then '' else 'meowziq ') + 'skip'
  robot.respond pattern, (res) ->
    message = null
    request
      method: 'PATCH'
