From 15cf720b7e0042f8e0fc30d23ac4c468a39a5a42 Mon Sep 17 00:00:00 2001 From: Michael VanOverbeek Date: Mon, 13 Feb 2017 18:12:05 +0000 Subject: Discord integration backend. --- ShiftOS.Server/Program.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ShiftOS.Server/Program.cs') diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs index ea16ab3..69571d0 100644 --- a/ShiftOS.Server/Program.cs +++ b/ShiftOS.Server/Program.cs @@ -163,7 +163,8 @@ namespace ShiftOS.Server Console.WriteLine("Server stopping."); }; - ChatBackend.StartDiscordBots(); + var task = ChatBackend.StartDiscordBots(); + task.Wait(); } public static string ReadEncFile(string fPath) @@ -247,8 +248,9 @@ namespace ShiftOS.Server method?.Invoke(null, new[] { msg.GUID, contents }); } - catch (MudException mEx) + catch (Exception mEx) { + Console.WriteLine(mEx); ClientDispatcher.DispatchTo("Error", msg.GUID, mEx); } catch @@ -264,8 +266,8 @@ namespace ShiftOS.Server } catch (Exception ex) { - Console.WriteLine($"[{DateTime.Now}] Exception while handling request {msg.Name}: {ex}"); - return; + //Console.WriteLine($"[{DateTime.Now}] Exception while handling request {msg.Name}: {ex}"); + //return; } } } -- cgit v1.2.3