Skip to content

Commit 762d846

Browse files
authored
Better formatting for blood webhook (#142)
1 parent fd4ea39 commit 762d846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/challenge/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ def post(self, request):
302302
team_clean = team_clean.replace("@", "@\u200b")
303303
body = {
304304
"username": "First Bloods",
305-
"text": "First blood!",
306305
"attachments": [
307306
{
308-
"text": f"Team {team_clean} has taken first blood on {challenge_clean}",
307+
"title": f":drop_of_blood: First Blood on `{challenge_clean}`!",
308+
"text": f"By team `{team_clean}`",
309309
"color": "#ff0000",
310310
}
311311
],

0 commit comments

Comments
 (0)