       """, [])
 
     format(tags)
-    |> send_slack()
+    |> send_slack("TAG")
   end
 
   def format(records) do


    busts =
      Repo.execute_and_load("""
      select count(*) as busts from divas where bust is not null or bust != 0;
      """, [])

    format(appeared ++ divas ++ images ++ busts)
    |> send_slack()
  end

  def tag do

    Enum.join(formated, "\n")
  end

  @webhook_url Application.get_env(:exblur, :slack)[:webhook]
  def send_slack(io, name) do
    params = %{
      link_names: 1,
      channel: "#alert_exblur",
      username: "Summaries",
      text: "------ #{name} ------\n" <> io,
    }
    HTTPoison.post @webhook_url, Poison.encode!(params), [{"Content-Type", "application/json"}]
  end

end
