     if e
       msg.send "Error: #{e}"
       return
-    
+
     content = JSON.parse(body)
 
     if !content.results or content.results.length == 0

    url = "#{url}/rest/api#{suffix}"
  else
    url = "#{url}#{suffix}"
  
help = (msg) ->
  commands = [
    "confluence show triggers"

  else
    text_search = "title~\"#{query}\""

  query_str = "type=page and space in(#{space}) and #{text_search}"
  query_str =  encodeURIComponent query_str
  suffix = "/content/search?cql=#{query_str}"
  url = make_url(suffix, true)
