 btoa = require("btoa")
 
 triggers = require './data/triggers.json'
-regex = new RegExp triggers.join('|'), 'i'
 
 cwd = process.cwd()
 DEFAULTS_FILE = "#{__dirname}/data/defaults.json"

  robot.hear /confluence show triggers/i, (msg) ->
    msg.send triggers.join('\n')

  robot.hear regex, (msg) ->
    search(msg, msg.match[1], false)

  url = make_url(suffix, true)
  headers = make_headers()

  msg.send url
  msg.http(url).headers(headers).get() (e, res, body) -> 
    if e
      msg.send "Error: #{e}"
