Update Status.cs

This commit is contained in:
Madpeterz 2021-02-14 19:07:27 +00:00
parent e7a294e32f
commit 997b3259da

View file

@ -45,7 +45,10 @@ namespace BetterSecondBot.DiscordSupervisor
reply = controler.Bot.LastStatusMessage + reply;
if (controler.Bot.KillMe == true)
{
controler.Bot.GetClient.Network.Logout();
if (controler.Bot.GetClient.Network.Connected == true)
{
controler.Bot.GetClient.Network.Logout();
}
controler = null;
reply = "[Discord-V: connected] (Logging out)";
}