From 3f1236f22eda41e4d7e869d5e7da3802e7419a26 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 25 May 2017 15:17:06 -0400 Subject: discord webhooks --- Project-Unite/Controllers/DeveloperController.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Project-Unite/Controllers') diff --git a/Project-Unite/Controllers/DeveloperController.cs b/Project-Unite/Controllers/DeveloperController.cs index b635a21..16c7799 100644 --- a/Project-Unite/Controllers/DeveloperController.cs +++ b/Project-Unite/Controllers/DeveloperController.cs @@ -145,6 +145,13 @@ namespace Project_Unite.Controllers //Now we just save to the database... db.Downloads.Add(download); + + NotificationDaemon.ScreamToDiscord("New release: " + download.Name, $@"A new release of ShiftOS has been made! + +Release name: {download.Name} +Stable: {download.IsStable} +Released on: {download.PostDate}", Url.Action("ViewRelease", "Downloads", new { id = download.Id })); + db.SaveChanges(); return RedirectToAction("Releases"); -- cgit v1.2.3