             application: 'RoQua Hubot'
             event: 'Mention'
             description: msg.message.text
+        when "sms"
+          console.error "Sending sms"
+          sendSms apikey, msg
+        
         when "nma"
-          params = 
+          params =
             apikey: apikey
             application: "Hubot"
             event: "Mention"

            .get() (err, res, body) ->
              body


  robot.respond /notify me by prowl with (\w+)/i, (msg) ->
    apikey = msg.match[1].toLowerCase()

    robot.brain.data.notifiers[msg.message.user.name.toLowerCase()] = "nma:#{apikey}"
    msg.send "OK"

  robot.respond /notify me by sms with (\d+)/i, (msg) ->
    number = msg.match[1].toLowerCase()
    robot.brain.data.notifiers ?= {}
    robot.brain.data.notifiers[msg.message.user.name.toLowerCase()] = "sms:#{number}"
    msg.send "OK"


  robot.respond /list notifiers/i, (msg) ->
    for username, apikey of robot.brain.data.notifiers
      msg.send("I notify #{username} with #{apikey}")
