diff options
| author | Michael VanOverbeek <[email protected]> | 2017-02-13 18:12:05 +0000 |
|---|---|---|
| committer | Michael VanOverbeek <[email protected]> | 2017-02-13 18:12:05 +0000 |
| commit | 15cf720b7e0042f8e0fc30d23ac4c468a39a5a42 (patch) | |
| tree | 3bd4134806efa3b5901c500884f660ac40cb0b9b /ShiftOS.Server/Program.cs | |
| parent | 797f0be617770524acf95316b967afbc5fe7134c (diff) | |
| download | shiftos_thereturn-15cf720b7e0042f8e0fc30d23ac4c468a39a5a42.tar.gz shiftos_thereturn-15cf720b7e0042f8e0fc30d23ac4c468a39a5a42.tar.bz2 shiftos_thereturn-15cf720b7e0042f8e0fc30d23ac4c468a39a5a42.zip | |
Discord integration backend.
Diffstat (limited to 'ShiftOS.Server/Program.cs')
| -rw-r--r-- | ShiftOS.Server/Program.cs | 10 |
1 files changed, 6 insertions, 4 deletions
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; } } } |
