logout killme fixs
This commit is contained in:
parent
ce0ec34da8
commit
e7a294e32f
2 changed files with 8 additions and 10 deletions
|
|
@ -47,16 +47,8 @@ namespace BetterSecondBot.DiscordSupervisor
|
|||
{
|
||||
controler.Bot.GetClient.Network.Logout();
|
||||
controler = null;
|
||||
if (DiscordClientConnected == true)
|
||||
{
|
||||
reply = "[Discord-V: connected] (Logging out)";
|
||||
}
|
||||
else
|
||||
{
|
||||
reply = "[Discord-V: Disconnected] (Logging out)";
|
||||
}
|
||||
reply = "[Discord-V: connected] (Logging out)";
|
||||
}
|
||||
|
||||
}
|
||||
return reply;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,13 @@ namespace BetterSecondBot.DiscordSupervisor
|
|||
{
|
||||
if (controler.Bot != null)
|
||||
{
|
||||
return true;
|
||||
if (controler.Bot.GetClient != null)
|
||||
{
|
||||
if (controler.Bot.GetClient.Network != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue