fixs my f up

This commit is contained in:
Madpeterz 2021-01-31 02:58:18 +00:00
parent 108578656b
commit 293d39f1c8
2 changed files with 1 additions and 9 deletions

View file

@ -67,7 +67,7 @@ namespace BetterSecondBot.DiscordSupervisor
protected override void login_bot(bool self_keep_alive) protected override void login_bot(bool self_keep_alive)
{ {
if (controler != null) if (controler == null)
{ {
controler = new CliExitOnLogout(myconfig, running_as_docker, self_keep_alive); controler = new CliExitOnLogout(myconfig, running_as_docker, self_keep_alive);
controler.Bot.setDiscordClient(DiscordClient); controler.Bot.setDiscordClient(DiscordClient);

View file

@ -39,14 +39,6 @@ namespace BetterSecondBot.DiscordSupervisor
{ {
reply = " " + reply; reply = " " + reply;
} }
if(reply == DiscordBotStatus_laststatus)
{
reply = "";
}
else
{
DiscordBotStatus_laststatus = reply;
}
if(HasBasicBot() == true) if(HasBasicBot() == true)
{ {
controler.Bot.LastStatusMessage = controler.Bot.GetStatus(); controler.Bot.LastStatusMessage = controler.Bot.GetStatus();