diff options
| author | Michael <[email protected]> | 2017-05-28 12:48:48 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-28 12:48:48 -0400 |
| commit | 0214626db3de7964ce572bf4de27aeb36fc6225a (patch) | |
| tree | 3d6eba00a87d6227fdd32a3650cd5e82b44d2888 | |
| parent | 54967e89a436db56f4a261bf7d4d1cd2306240c4 (diff) | |
| download | project-unite-0214626db3de7964ce572bf4de27aeb36fc6225a.tar.gz project-unite-0214626db3de7964ce572bf4de27aeb36fc6225a.tar.bz2 project-unite-0214626db3de7964ce572bf4de27aeb36fc6225a.zip | |
announce new bugs to discord
| -rw-r--r-- | Project-Unite/Controllers/BugsController.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/BugsController.cs b/Project-Unite/Controllers/BugsController.cs index 69a7fb8..c44f386 100644 --- a/Project-Unite/Controllers/BugsController.cs +++ b/Project-Unite/Controllers/BugsController.cs @@ -128,7 +128,14 @@ namespace Project_Unite.Controllers db.ForumPosts.Add(comment); db.Bugs.Add(bug); db.SaveChanges(); + NotificationDaemon.ScreamToDiscord($"A bug has been opened by {ACL.UserNameRaw(User.Identity.GetUserId())}", $@"**Title:** {bug.Name} +**Version ID:** {bug.ReleaseId} +**Species:** {bug.Species} +**Urgency:** {bug.Urgency} +**Author's description:** + +{comment.Body.Substring(Math.Min(comment.Body.Length, 128))}", Url.Action("ViewBug", new { id = bug.Id })); return RedirectToAction("ViewBug", new { id = bug.Id }); } } |
