Rewritten support chat backend. Added discord notifications

This commit is contained in:
Marcel Baumgartner
2023-04-21 00:37:02 +02:00
parent eb28ced8bb
commit 16dfc17132
15 changed files with 1939 additions and 236 deletions

View File

@@ -80,7 +80,15 @@ public class EventSystem
var del = (Delegate)subscriber.Action;
((Task)del.DynamicInvoke(data)!).Wait();
try
{
((Task)del.DynamicInvoke(data)!).Wait();
}
catch (Exception e)
{
Logger.Warn($"Error emitting '{subscriber.Id} on {subscriber.Handle}'");
Logger.Warn(e);
}
stopWatch.Stop();