Commit ad57a940ab52ae8545385b82e36a24699b7b2dee

Thomas de Grivel 2022-02-03T11:47:43

discord

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/discord.ex b/lib/discord.ex
index 0df6cfc..5e4226e 100644
--- a/lib/discord.ex
+++ b/lib/discord.ex
@@ -3,7 +3,7 @@ defmodule Discord do
   def error(params) do
     channel = Application.get_env(:kmxgit, :discord_errors_channel)
     url = "https://discord.com/api/webhooks/938739293336240139/rwlm6amtl8aGWyDt1iZtUa__HISah8KQeNuWD3_UrVTyZjxcAn6UGaZ3EJ0Rq2pt4_5e"
-    message = %{content: inspect(params)}
+    message = %{content: "```#{inspect(params)}```"}
     json = Jason.encode!(message)
     HTTPoison.post(url, json, [{"Content-Type", "application/json"}])
   end