diff --git a/Project-Unite/Controllers/ContestsController.cs b/Project-Unite/Controllers/ContestsController.cs index bb60013..5653751 100644 --- a/Project-Unite/Controllers/ContestsController.cs +++ b/Project-Unite/Controllers/ContestsController.cs @@ -276,6 +276,13 @@ public ActionResult CreateContest(CreateContestViewModel model) db.Contests.Add(c); db.SaveChanges(); + + NotificationDaemon.ScreamToDiscord( + "A new contest has started.", + $@"Contest name: {c.Name} +Ends at: {c.EndsAt}", + Url.Action("ViewContest", new { id = c.Id }) + ); NotificationDaemon.NotifyEveryone(User.Identity.GetUserId(), "A contest has just started.", "A new contest has been open! Contest: " + c.Name, Url.Action("ViewContest", new { id = c.Id })); return RedirectToAction("ViewContest", new { id = c.Id });