diff --git a/BSBshared/BotTypes/BasicBot.cs b/BSBshared/BotTypes/BasicBot.cs index 15ce175..59a54d9 100644 --- a/BSBshared/BotTypes/BasicBot.cs +++ b/BSBshared/BotTypes/BasicBot.cs @@ -143,6 +143,7 @@ namespace BetterSecondBotShared.bottypes public virtual void KillMePlease() { killMe = true; + Client.Network.BeginLogout(); } public virtual void Setup(JsonConfig config, string Version) { diff --git a/CLI/CliExitOnLogout.cs b/CLI/CliExitOnLogout.cs index 772de90..1d7e9df 100644 --- a/CLI/CliExitOnLogout.cs +++ b/CLI/CliExitOnLogout.cs @@ -30,7 +30,6 @@ namespace BetterSecondBot } Thread.Sleep(1000); } - Bot.GetClient.Network.Logout(); } public CliExitOnLogout(JsonConfig Config, bool as_docker, bool use_self_keep_alive) {