From 87225ead2f9b19e030fd3744bfafc4ab47a6a825 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:11:09 +0800 Subject: [PATCH] Reset GambaSesh presence detection on reconnect so it can resync with join list --- KfChatDotNetKickBot/KickBot.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/KfChatDotNetKickBot/KickBot.cs b/KfChatDotNetKickBot/KickBot.cs index 6686f41..a767b69 100644 --- a/KfChatDotNetKickBot/KickBot.cs +++ b/KfChatDotNetKickBot/KickBot.cs @@ -245,6 +245,8 @@ public class KickBot private void OnKfWsReconnected(object sender, ReconnectionInfo reconnectionInfo) { _logger.Error($"Sneedchat reconnected due to {reconnectionInfo.Type}"); + _logger.Info("Resetting GambaSesh presence so it can resync if he crashed while the bot was DC'd"); + _gambaSeshPresent = false; _logger.Info($"Rejoining {_config.KfChatRoomId}"); _kfClient.JoinRoom(_config.KfChatRoomId); }