diff --git a/Sean/Modules/DMModule.cs b/Sean/Modules/DMModule.cs index 8983629..2ceb60d 100644 --- a/Sean/Modules/DMModule.cs +++ b/Sean/Modules/DMModule.cs @@ -30,6 +30,7 @@ namespace Sean.Modules await guild.DefaultChannel.SendMessageAsync("Ciao les nazes !"); } await Context.Client.StopAsync(); + Environment.Exit(0); } #endregion Methods diff --git a/Sean/Program.cs b/Sean/Program.cs index 6ad2514..9508536 100644 --- a/Sean/Program.cs +++ b/Sean/Program.cs @@ -47,16 +47,16 @@ namespace Sean await client.LoginAsync(TokenType.Bot, Environment.GetEnvironmentVariable("DiscordToken_Sean")); await client.StartAsync(); - client.Disconnected += Client_Disconnected; + //client.Disconnected += Client_Disconnected; // Block this task until the program is closed. await Task.Delay(-1); } - private Task Client_Disconnected(Exception arg) - { - Environment.Exit(0); - return Task.CompletedTask; - } + //private Task Client_Disconnected(Exception arg) + //{ + // Environment.Exit(0); + // return Task.CompletedTask; + //} private static void Main(string[] args) {