diff options
Diffstat (limited to 'Project-Unite/Controllers')
| -rw-r--r-- | Project-Unite/Controllers/ContestsController.cs | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ namespace Project_Unite.Controllers 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 }); |
