From 48fd2610ace06cf779e0f8e5cf8e7afa9796e139 Mon Sep 17 00:00:00 2001 From: Context 77 <126421199+ctx77@users.noreply.github.com> Date: Sun, 2 Mar 2025 20:46:44 +0100 Subject: [PATCH] add sleep before join --- FaustBot/Communication/Connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FaustBot/Communication/Connection.py b/FaustBot/Communication/Connection.py index d130015..2a3ebee 100644 --- a/FaustBot/Communication/Connection.py +++ b/FaustBot/Communication/Connection.py @@ -156,6 +156,8 @@ class Connection(object): "NICKSERV", f"identify {self.details.get_nick()} {self.details.get_pwd()} ", ) + # Sleep 5 Seconds to ensure that the Bot is fully logged in. + time.sleep(5.123) self.irc.send(f"JOIN {self.details.get_channel()}\r\n".encode()) self.irc.send(f"WHO {self.details.get_channel()}\r\n".encode()) self.irc.send(f"MODE {self.details.get_nick()} -R\r\n".encode())