     IO.inspect(HTTPotion.post(hook, bodify(%{event: event, edits: edits})))
   end
 
+  def exec("duplicate", %{event: event}) do
+    spawn(fn ->
+      case Cosmic.get(@cosmic_config_slug) do
+        %{"metadata" => %{"event_duplicated" => hook}} ->
+          IO.puts("Posting webhook to #{hook} because of edit")
+          IO.inspect(HTTPotion.post(hook, bodify(%{event: event})))
+
+        _ ->
+          nil
+      end
+    end)
+  end
+
   def exec("message_host", contents = ~m(event host message)a) do
     if @instance != "jd" do
       %{"metadata" => %{"message_host" => hook}} = Cosmic.get(@cosmic_config_slug)

    "#{hour}#{minute} " <> am_pm
  end

  def parse(nil) do
    DateTime.utc_now()
  end

  def zero_pad(int) do
    str = "#{int}"
    if String.length(str), do: str, else: "0#{str}"
  end

  def parse(dt = %DateTime{}) do
    dt
  end

  def parse(dt) do
    {:ok, result, _} = DateTime.from_iso8601(dt)
    result
  end

  def flatten(%{} = map) do

      IO.puts("Posting webhook to #{hook} because of confirmed")
      IO.inspect(HTTPotion.post(hook, bodify(%{event: event, team_member: team_member})))
    else
      if Enum.member?(event["tags"] || [], "Source: Direct Publish") do
        IO.puts("Not sending published webhook because this is a direct publish event")
      else
        %{"metadata" => %{"vol_event_submission" => hook}} = Cosmic.get(@cosmic_config_slug)
